Module metrics

Source

Constants§

HOST_METRICS
SOURCE_COMPLIANCE_METRICS

Functions§

assert_metrics_present
This helper function performs an HTTP request to the specified URL and validates the presence of the specified metrics.
assert_vector_started
This helper function performs an HTTP request to the specified URL and validates the presence of vector_started-ish metric.
extract_component_sent_events_total_sum
This helper function extracts the sum of component_sent_events_total-ish metrics across all labels.
extract_vector_started
This helper function validates the presence of vector_started-ish metric.
get_component_sent_events_total
This helper function performs an HTTP request to the specified URL and extracts the sum of component_sent_events_total-ish metrics across all labels.
load
This helper function issues an HTTP request to the Prometheus-exposition format metrics endpoint, validates that it completes successfully and returns the response body.
wait_for_vector_started
This helper function performs HTTP requests to the specified URL and waits for the presence of vector_started-ish metric until the deadline with even delays between attempts.