Macros

Structs

  • A [Metric] counts individual observations from an event or sample stream in configurable buckets. Similar to a Summary, it also provides a sum of observations and an observation count.
  • Timer to measure and record the duration of an event.
  • MetricsPusher provides a function to push a list of Metrics to a configurable pushgateway endpoint.

Type Definitions

  • A [Collector] that bundles a set of Histograms that all share the same [Desc], but have different values for their variable labels. This is used if you want to count the same thing partitioned by various dimensions (e.g. HTTP request latencies, partitioned by status code and method).
  • The integer version of [Counter]. Provides better performance if metric values are all positive integers (natural numbers).
  • The integer version of [CounterVec]. Provides better performance if metric are all positive integers (natural numbers).
  • The integer version of [Gauge]. Provides better performance if metric values are all integers.
  • The integer version of [GaugeVec]. Provides better performance if metric values are all integers.