summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/defaults/main/rules_smokeping.yml
blob: 6dfcd2f9fb1f916a82bcb9cf6aa45d4006a47754 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
prometheus_server_rules_smokeping_extra: []
prometheus_server_rules_smokeping:
  - record: instance:smokeping_probe_success:ratio1m
    expr: increase(smokeping_response_duration_seconds_count[1m]) / increase(smokeping_requests_total[1m])
  - record: instance:smokeping_response_duration_seconds:q50
    expr: histogram_quantile(0.50, rate(smokeping_response_duration_seconds_bucket[1m]))
  - record: instance:smokeping_response_duration_seconds:q90
    expr: histogram_quantile(0.90, rate(smokeping_response_duration_seconds_bucket[1m]))
  - record: instance:smokeping_response_duration_seconds:q99
    expr: histogram_quantile(0.99, rate(smokeping_response_duration_seconds_bucket[1m]))

  - alert: SmokepingProberConfigReloadFailure
    expr: smokeping_prober_config_last_reload_successful != 1
    for: 0m
    labels:
      severity: warning
    annotations:
      summary: Smokeping-prober configuration reload failure (instance {{ '{{' }} $labels.instance {{ '}}' }})
      description: "Smokeping-prober configuration reload error\n  VALUE = {{ '{{' }} $value {{ '}}' }}\n  LABELS = {{ '{{' }} $labels {{ '}}' }}"