metrics

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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
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