metrics

package
Version: v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package metrics provides metrics for micro

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin() plugin.Plugin

NewPlugin returns a new metrics plugin

Types

type Metrics

type Metrics struct {
	Path string

	Provider Provider
}

func (*Metrics) Handler

func (m *Metrics) Handler(h http.Handler) http.Handler

type Provider

type Provider interface {
	Handler(h http.Handler) http.Handler
}

Provider is a metrics provider

Source Files

Directories

Path Synopsis
module
Package prometheus provides prometheus metrics via a http handler
Package prometheus provides prometheus metrics via a http handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL