Documentation ¶
Index ¶
- Constants
- Variables
- func Init(l log.Logger, conf config.TelemetryConfig) (func(), error)
- func MetricsServer(addr string) *http.Server
- func NewCounter(metric string, labels map[string]string) prometheus.Counter
- func NewGauge(metric string, labels map[string]string) prometheus.Gauge
- func SetGaugeViaPush(name string, labels map[string]string, val float64) error
Constants ¶
View Source
const MetricWaitInterval = time.Second * 2
Variables ¶
View Source
var (
MetricServer string
)
Functions ¶
func MetricsServer ¶
func NewCounter ¶ added in v0.7.0
func NewCounter(metric string, labels map[string]string) prometheus.Counter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.