metrics

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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

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
y or Y : Canonical URL