Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CounterType pkg.MetricType = "counter" GaugeType pkg.MetricType = "gauge" HistogramType pkg.MetricType = "histogram" OpsCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "canary_check_count", Help: "The total number of checks", }, []string{"type", "endpoint", "name", "namespace"}, ) OpsSuccessCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "canary_check_success_count", Help: "The total number of successful checks", }, []string{"type", "endpoint", "name", "namespace"}, ) OpsFailedCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "canary_check_failed_count", Help: "The total number of failed checks", }, []string{"type", "endpoint", "name", "namespace"}, ) RequestLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "canary_check_duration", Help: "A histogram of the response latency in milliseconds.", Buckets: []float64{5, 10, 25, 50, 200, 500, 1000, 3000, 10000, 30000}, }, []string{"type", "endpoint", "name", "namespace"}, ) Guage = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "canary_check", Help: "A gauge representing the canaries success (0) or failure (1)", }, []string{"type", "endpoint", "name", "namespace"}, ) GenericGauge = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "canary_check_gauge", Help: "A gauge representing duration", }, []string{"type", "name", "metric", "namespace"}, ) GenericCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "canary_check_counter", Help: "A gauge representing counters", }, []string{"type", "name", "metric", "value", "namespace"}, ) GenericHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "canary_check_histogram", Help: "A histogram representing durations", Buckets: []float64{5, 10, 25, 50, 200, 500, 1000, 2500, 5000, 10000, 20000}, }, []string{"type", "name", "metric", "namespace"}, ) )
Functions ¶
func GetMetrics ¶ added in v0.11.4
func RemoveCheck ¶ added in v0.11.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.