Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Namespace is the Prometheus Namespace in all metrics published by the Observation Service Namespace string = "caraml" // Subsystem is the Prometheus Subsystem in all metrics published by the Observation Service Subsystem string = "observation_service" // FlushDurationMs is the key to measure duration for flushing observations from channel to configured Data sink FlushDurationMs metrics.MetricName = "flush_duration_ms" // RequestDurationMs is the key to measure end-to-end duration for consuming and publishing observations RequestDurationMs metrics.MetricName = "request_duration_ms" // ReadCount is the key to measure no. of logs read from configured Data source ReadCount metrics.MetricName = "read_count" // FlushCount is the key to measure no. of flushes to configured Data sink FlushCount metrics.MetricName = "flush_count" // FlushObservationCount is the key to measure no. of observations flushed to configured Data sink FlushObservationCount metrics.MetricName = "flush_observation_count" )
Variables ¶
View Source
var GaugeMap = map[metrics.MetricName]metrics.PrometheusGaugeVec{}
GaugeMap configures gauge metrics
Functions ¶
func GetCounterMap ¶
func GetCounterMap() map[metrics.MetricName]metrics.PrometheusCounterVec
GetCounterMap configures counter metrics
func GetHistogramMap ¶
func GetHistogramMap() map[metrics.MetricName]metrics.PrometheusHistogramVec
GetHistogramMap configures histogram metrics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.