package
Version:
v0.14.0
Opens a new window with list of versions in this module.
Published: Jun 21, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ConfigPrefix defines the configuration prefix
type Metrics interface {
Start()
Stop() error
}
Metrics represents the Metrics interface
New creates a new Metrics instance
Option represents a Metrics option
Logger returns logger option
Route returns route option
type Options struct {
Logger logger.Logger `ignored:"true" json:"-"`
Port int `default:"9090" envconfig:"PORT"`
Route string `default:"/metrics" envconfig:"ROUTE"`
}
Options represents the Metrics options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.