Lightning.Runs.PromExPlugin (Lightning v2.13.5)

View Source

Metrics callbacks implementation for the PromEx plugin.

Event metrics are used to publish the dispatched events in the system. Polling metrics are used to publish metrics that are calculated by polling data periodically.

Summary

Functions

calculate_average_claim_duration(reference_time, run_age_seconds)

count_finalised_runs(threshold_time)

fire_lost_run_event()

project_metrics(unclaimed_threshold_seconds)

projects_with_available_runs_older_than(threshold_time)

projects_with_spare_capacity(projects)

run_queue_metrics(run_age_seconds, consideration_window_seconds)

seed_event_metrics()

stalled_run_count(threshold_seconds)