Expand description
Prometheus metrics.
Structsยง
- Metrics
- Metrics collector.
- Metrics
Config - Metrics configuration.
- Metrics
Handle - Metrics handle for flushing on shutdown.
- Push
Gateway Config - Push gateway configuration.
Staticsยง
- GLOBAL_
METRICS ๐ - Global metrics handle for flush-on-demand.
- METRICS_
INSTANCE ๐ - Global metrics instance label for push gateway grouping.
Functionsยง
- apply_
push_ ๐gateway_ env_ overrides - flush
- Flushes metrics to the push gateway if configured.
- flush_
global - Flushes metrics to the push gateway if configured.
- flush_
to_ ๐gateway - Internal function to push metrics to the gateway.
- get_
instance_ ๐label - Gets the configured instance label, if any.
- install_
listener ๐ - install_
prometheus - Installs the Prometheus metrics recorder and HTTP listener.
- install_
with_ ๐runtime - parse_
bool_ ๐env - parse_
port_ ๐env - parse_
push_ ๐gateway_ settings - parse_
string_ ๐env - set_
global_ ๐recorder - set_
instance_ label - Sets the metrics instance label for push gateway grouping.