Skip to content

Instantly share code, notes, and snippets.

@pintohutch
Created June 21, 2023 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pintohutch/4bc09ce40784b8c12b7f4dedb73881d2 to your computer and use it in GitHub Desktop.
Save pintohutch/4bc09ce40784b8c12b7f4dedb73881d2 to your computer and use it in GitHub Desktop.
rule-evaluator exposed /metrics
# HELP prometheus_notifications_alertmanagers_discovered The number of alertmanagers discovered and active.
# TYPE prometheus_notifications_alertmanagers_discovered gauge
prometheus_notifications_alertmanagers_discovered 1
# HELP prometheus_notifications_dropped_total Total number of alerts dropped due to errors when sending to Alertmanager.
# TYPE prometheus_notifications_dropped_total counter
prometheus_notifications_dropped_total 0
# HELP prometheus_notifications_errors_total Total number of errors sending alert notifications.
# TYPE prometheus_notifications_errors_total counter
prometheus_notifications_errors_total{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts"} 0
# HELP prometheus_notifications_latency_seconds Latency quantiles for sending alert notifications.
# TYPE prometheus_notifications_latency_seconds summary
prometheus_notifications_latency_seconds{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts",quantile="0.5"} 0.07665582
prometheus_notifications_latency_seconds{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts",quantile="0.9"} 0.11928987
prometheus_notifications_latency_seconds{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts",quantile="0.99"} 0.220580927
prometheus_notifications_latency_seconds_sum{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts"} 1.4544116640000002
prometheus_notifications_latency_seconds_count{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts"} 20
# HELP prometheus_notifications_queue_capacity The capacity of the alert notifications queue.
# TYPE prometheus_notifications_queue_capacity gauge
prometheus_notifications_queue_capacity 10000
# HELP prometheus_notifications_queue_length The number of alert notifications in the queue.
# TYPE prometheus_notifications_queue_length gauge
prometheus_notifications_queue_length 0
# HELP prometheus_notifications_sent_total Total number of alerts sent.
# TYPE prometheus_notifications_sent_total counter
prometheus_notifications_sent_total{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts"} 20
# HELP prometheus_rule_evaluation_duration_seconds The duration for a rule to execute.
# TYPE prometheus_rule_evaluation_duration_seconds summary
prometheus_rule_evaluation_duration_seconds{quantile="0.5"} 0.079688125
prometheus_rule_evaluation_duration_seconds{quantile="0.9"} 0.249855696
prometheus_rule_evaluation_duration_seconds{quantile="0.99"} 0.254229992
prometheus_rule_evaluation_duration_seconds_sum 4.816319469999997
prometheus_rule_evaluation_duration_seconds_count 40
# HELP prometheus_rule_evaluation_failures_total The total number of rule evaluation failures.
# TYPE prometheus_rule_evaluation_failures_total counter
prometheus_rule_evaluation_failures_total{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 0
# HELP prometheus_rule_evaluations_total The total number of rule evaluations.
# TYPE prometheus_rule_evaluations_total counter
prometheus_rule_evaluations_total{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 40
# HELP prometheus_rule_group_duration_seconds The duration of rule group evaluations.
# TYPE prometheus_rule_group_duration_seconds summary
prometheus_rule_group_duration_seconds{quantile="0.01"} 0.087728212
prometheus_rule_group_duration_seconds{quantile="0.05"} 0.087728212
prometheus_rule_group_duration_seconds{quantile="0.5"} 0.248881498
prometheus_rule_group_duration_seconds{quantile="0.9"} 0.285431335
prometheus_rule_group_duration_seconds{quantile="0.99"} 0.289086094
prometheus_rule_group_duration_seconds_sum 4.831682748
prometheus_rule_group_duration_seconds_count 20
# HELP prometheus_rule_group_interval_seconds The interval of a rule group.
# TYPE prometheus_rule_group_interval_seconds gauge
prometheus_rule_group_interval_seconds{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 30
# HELP prometheus_rule_group_iterations_missed_total The total number of rule group evaluations missed due to slow rule group evaluation.
# TYPE prometheus_rule_group_iterations_missed_total counter
prometheus_rule_group_iterations_missed_total{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 0
# HELP prometheus_rule_group_iterations_total The total number of scheduled rule group evaluations, whether executed or missed.
# TYPE prometheus_rule_group_iterations_total counter
prometheus_rule_group_iterations_total{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 20
# HELP prometheus_rule_group_last_duration_seconds The duration of the last rule group evaluation.
# TYPE prometheus_rule_group_last_duration_seconds gauge
prometheus_rule_group_last_duration_seconds{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 0.249927214
# HELP prometheus_rule_group_last_evaluation_samples The number of samples returned during the last rule group evaluation.
# TYPE prometheus_rule_group_last_evaluation_samples gauge
prometheus_rule_group_last_evaluation_samples{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 5
# HELP prometheus_rule_group_last_evaluation_timestamp_seconds The timestamp of the last rule group evaluation in seconds.
# TYPE prometheus_rule_group_last_evaluation_timestamp_seconds gauge
prometheus_rule_group_last_evaluation_timestamp_seconds{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 1.687381134164185e+09
# HELP prometheus_rule_group_rules The number of rules.
# TYPE prometheus_rule_group_rules gauge
prometheus_rule_group_rules{rule_group="/etc/rules/rules__default__example-rules.yaml;example"} 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment