Available on (crate features logging or metrics or telemetry or tracing) and crate feature metrics only.
Expand description

Metrics-related functionality.

Foundations provides simple and ergonomic interface to Prometheus metrics:

  • Use metrics macro to define regular metrics.
  • Use report_info function to register service information metrics (metrics, whose value is persistent during the service lifetime, e.g. software version).
  • Use collect method to obtain metrics report programmatically.
  • Use telemetry server to expose a metrics endpoint.

Structs§

Traits§

Functions§

Attribute Macros§

  • A macro that allows to define a Prometheus info metric.
  • A macro that allows to define Prometheus metrics.