Skip to main content

install_prometheus_metrics

Function install_prometheus_metrics 

Source
pub fn install_prometheus_metrics(
    context: Context,
    config: PrometheusMetricsConfig,
) -> Result<()>
Expand description

Spawns a task that periodically pushes both consensus and execution metrics to Victoria Metrics.

This concatenates Prometheus-format metrics from both sources and pushes them directly to Victoria Metrics’ Prometheus import endpoint.

The task runs for the lifetime of the consensus runtime.