Documentation ¶
Index ¶
- Variables
- func FillLatencies(checkKey string, duration string, latency *types.Latency) error
- func FillUptime(checkKey, duration string, uptime *types.Uptime) error
- func GetMetrics(key string) (uptime types.Uptime, latency types.Latency)
- func Record(ctx context.Context, canary v1.Canary, result *pkg.CheckResult) (_uptime types.Uptime, _latency types.Latency)
- func RemoveCheck(checks v1.Canary)
- func RemoveCheckByKey(key string)
- func UnregisterGauge(ctx context.Context, checkIDs []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CounterType pkg.MetricType = "counter" GaugeType pkg.MetricType = "gauge" HistogramType pkg.MetricType = "histogram" CustomGauges map[string]*prometheus.GaugeVec CustomCounters map[string]*prometheus.CounterVec CustomHistograms map[string]*prometheus.HistogramVec // Global metrics CanaryCheckInfo *prometheus.GaugeVec Gauge *prometheus.GaugeVec // Check specific metrics OpsInvalidCount *prometheus.CounterVec OpsCount *prometheus.CounterVec OpsFailedCount *prometheus.CounterVec OpsSuccessCount *prometheus.CounterVec RequestLatency *prometheus.HistogramVec )
Functions ¶
func FillLatencies ¶ added in v0.37.0
func FillUptime ¶ added in v0.37.0
func GetMetrics ¶ added in v0.11.4
func RemoveCheck ¶ added in v0.11.4
func RemoveCheckByKey ¶ added in v0.38.11
func RemoveCheckByKey(key string)
func UnregisterGauge ¶ added in v0.38.168
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.