MetricType enum Null safety
Defines the different metric type supported by Prometheus.
- counter → const MetricType
MetricType.counter is a monotonically increasing counter.
- gauge → const MetricType
MetricType.gauge represents a value that can go up and down.
- summary → const MetricType
A MetricType.summary samples observations over sliding windows of time and provides instantaneous insight into their distributions, frequencies, and sums.
- histogram → const MetricType
MetricType.histograms allow aggregatable distributions of events, such as request latencies.
- untyped → const MetricType
MetricType.untyped can be used for metrics that don't fit the other types.