metrics

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APICallErrorsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "yaae_api_call_errors_total",
		Help: "Count of errors calling APIs",
	}, []string{"service", "api"})
	ScrapeDurationHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "yaae_scrape_duration_seconds",
		Help:    "Histogram of response time for handler in seconds",
		Buckets: prometheus.DefBuckets,
	}, []string{"scraper", "status"})
)

Functions

func InitMetrics

func InitMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL