1 # DO NOT EDIT - This file is being maintained by Chef
7 expr: junos_interface_up{site="amsterdam",name=~"ge-[01]/2/2"} != 1
10 alertgroup: "amsterdam"
12 status: "{{ $value }}"
13 - alert: pdu current draw
14 expr: rPDU2PhaseStatusCurrent{site="amsterdam",rPDU2PhaseStatusIndex="1"} / 10 > 28
17 alertgroup: "amsterdam"
19 current: "{{ $value | humanize }}A"
21 expr: sum(avg_over_time(rPDU2PhaseStatusApparentPower{site="amsterdam",rPDU2PhaseStatusIndex="1"}[1h]) / 100) > 3.5
24 alertgroup: "amsterdam"
26 current: "{{ $value | humanize }}kVA"
27 - alert: site temperature
28 expr: min(rPDU2SensorTempHumidityStatusTempC{site="amsterdam"}) / 10 < 18 or min(rPDU2SensorTempHumidityStatusTempC{site="amsterdam"}) / 10 > 26
31 alertgroup: "amsterdam"
33 temperature: "{{ $value | humanize }}C"
34 - alert: site humidity
35 expr: max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="amsterdam"}) / 100 < 0.25 or max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="amsterdam"}) / 100 > 0.65
38 alertgroup: "amsterdam"
40 humidity: "{{ $value | humanizePercentage }}"
47 alertgroup: "{{ $labels.instance }}"
48 - alert: apache workers busy
49 expr: sum(apache_workers{state="busy"}) by (instance) / sum(apache_scoreboard) by (instance) > 0.8
52 alertgroup: "{{ $labels.instance }}"
54 busy_workers: "{{ $value | humanizePercentage }}"
55 - alert: apache connection limit
56 expr: (apache_connections{state="total"} - on (instance) apache_connections{state="closing"}) / on (instance) (apache_server_limit * on (instance) (apache_threads_per_child + on (instance) (apache_async_request_worker_factor * on (instance) apache_workers{state="idle"} / on(instance) apache_processes{state="all"}))) > 0.8
59 alertgroup: "{{ $labels.instance }}"
61 connections: "{{ $value | humanizePercentage }}"
64 - alert: chef client not running
65 expr: time() - node_systemd_timer_last_trigger_seconds{name="chef-client.timer"} > 3600
68 alertgroup: "{{ $labels.instance }}"
70 down_time: "{{ $value | humanizeDuration }}"
73 - alert: cisco fan alarm
74 expr: rlPhdUnitEnvParamFan1Status{rlPhdUnitEnvParamFan1Status!="normal"} > 0 or rlPhdUnitEnvParamFan2Status{rlPhdUnitEnvParamFan2Status!="normal"} > 0
77 alertgroup: "{{ $labels.site }}"
79 fan_rpm: "{{ with printf \"rlPhdUnitEnvParamFan1Speed{site='%s',instance='%s',rlPhdUnitEnvParamStackUnit='%s'}\" $labels.site $labels.instance $labels.rlPhdUnitEnvParamStackUnit | query }}{{ . | first | value | humanize }}rpm{{end}}"
80 - alert: cisco temperature alarm
81 expr: rlPhdUnitEnvParamTempSensorStatus{rlPhdUnitEnvParamTempSensorStatus!="ok"} > 0
84 alertgroup: "{{ $labels.site }}"
86 temp_celsius: "{{ with printf \"rlPhdUnitEnvParamTempSensorValue{site='%s',instance='%s',rlPhdUnitEnvParamStackUnit='%s'}\" $labels.site $labels.instance $labels.rlPhdUnitEnvParamStackUnit | query }}{{ . | first | value | humanize }}C{{end}}"
87 - alert: cisco main power alarm
88 expr: rlPhdUnitEnvParamMainPSStatus{rlPhdUnitEnvParamMainPSStatus!="normal"} > 0
91 alertgroup: "{{ $labels.site }}"
92 - alert: cisco redundant power alarm
93 expr: rlPhdUnitEnvParamRedundantPSStatus{rlPhdUnitEnvParamRedundantPSStatus!="normal"} > 0
96 alertgroup: "{{ $labels.site }}"
100 expr: rate(node_pressure_cpu_waiting_seconds_total[5m]) > 0.75
103 alertgroup: "{{ $labels.instance }}"
105 pressure: "{{ $value | humanizePercentage }}"
108 - alert: active rails queries
109 expr: sum(pg_stat_activity_count{datname="openstreetmap",usename="rails",state="active"}) by (instance) > 50 and on (instance) chef_role{name="db-master"}
114 queries: "{{ $value }}"
115 - alert: active cgimap queries
116 expr: sum(pg_stat_activity_count{datname="openstreetmap",usename="cgimap",state="active"}) by (instance) > 30 and on (instance) chef_role{name="db-master"}
121 delay: "{{ $value }}"
124 - alert: discourse job failure rate
125 expr: rate(discourse_job_failures[5m]) > 0
128 alertgroup: discourse
130 failure_rate: "{{ $value }} jobs/s"
134 expr: junos_interface_up{site="dublin",name=~"ge-[01]/2/2"} != 1
139 status: "{{ $value }}"
140 - alert: pdu current draw
141 expr: rPDU2PhaseStatusCurrent{site="dublin",rPDU2PhaseStatusIndex="1"} / 10 > 28
146 current: "{{ $value | humanize }}A"
148 expr: sum(avg_over_time(rPDU2PhaseStatusApparentPower{site="dublin",rPDU2PhaseStatusIndex="1"}[1h]) / 100) > 4
153 current: "{{ $value | humanize }}kVA"
154 - alert: site temperature
155 expr: min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 < 18 or min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 > 26
160 temperature: "{{ $value | humanize }}C"
161 - alert: site humidity
162 expr: max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 < 0.25 or max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 > 0.65
167 humidity: "{{ $value | humanizePercentage }}"
170 - alert: fastly error rate
171 expr: sum(rate(fastly_rt_status_group_total{status_group="5xx"}[5m])) by (service_name, datacenter) / sum(rate(fastly_rt_status_group_total[5m])) by (service_name, datacenter) > 0.005
176 error_rate: "{{ $value | humanizePercentage }}"
177 - alert: fastly frontend healthcheck warning
178 expr: count(fastly_healthcheck_status == 0) by (service, datacenter) > 2
182 - alert: fastly frontend healthcheck critical
183 expr: count(fastly_healthcheck_status == 0) by (service, datacenter) == count(fastly_healthcheck_status) by (service, datacenter)
187 - alert: fastly backend healthcheck warning
188 expr: count(fastly_healthcheck_status == 0) by (service, backend) > 10
192 - alert: fastly backend healthcheck critical
193 expr: count(fastly_healthcheck_status == 0) by (service, backend) == count(fastly_healthcheck_status) by (service, backend)
199 - alert: readonly filesystem
200 expr: node_filesystem_readonly > min_over_time(node_filesystem_readonly[7d])
203 alertgroup: "{{ $labels.instance }}"
204 - alert: filesystem low on space
205 expr: node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.05
208 alertgroup: "{{ $labels.instance }}"
210 percentage_free: "{{ $value | humanizePercentage }}"
211 free_bytes: "{{ with printf \"node_filesystem_avail_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
212 total_total: "{{ with printf \"node_filesystem_size_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
213 - alert: filesystem low on inodes
214 expr: node_filesystem_files_free / node_filesystem_files < 0.1
217 alertgroup: "{{ $labels.instance }}"
219 percentage_free: "{{ $value | humanizePercentage }}"
220 free_inodes: "{{ with printf \"node_filesystem_files_free{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
221 total_inodes: "{{ with printf \"node_filesystem_files{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
224 - alert: hwmon fan alarm
225 expr: node_hwmon_fan_alarm == 1
228 alertgroup: "{{ $labels.instance }}"
230 fan_rpm: "{{ with printf \"node_hwmon_fan_rpm{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}rpm{{end}}"
231 fan_min_rpm: "{{ with printf \"node_hwmon_fan_min_rpm{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}rpm{{end}}"
232 - alert: hwmon temperature alarm
233 expr: node_hwmon_temp_alarm == 1
236 alertgroup: "{{ $labels.instance }}"
238 temp_celsius: "{{ with printf \"node_hwmon_temp_celsius{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}C{{end}}"
239 temp_max_celsius: "{{ with printf \"node_hwmon_temp_max_celsius{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}C{{end}}"
240 temp_crit_celsius: "{{ with printf \"node_hwmon_temp_crit_celsius{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}C{{end}}"
241 - alert: hwmon voltage alarm
242 expr: node_hwmon_in_alarm == 1
245 alertgroup: "{{ $labels.instance }}"
247 in_volts: "{{ with printf \"node_hwmon_in_volts{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}V{{end}}"
248 in_min_volts: "{{ with printf \"node_hwmon_in_min_volts{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}V{{end}}"
249 in_max_volts: "{{ with printf \"node_hwmon_in_max_volts{instance='%s',chip='%s',sensor='%s'}\" $labels.instance $labels.chip $labels.sensor | query }}{{ . | first | value | humanize }}V{{end}}"
253 expr: rate(node_pressure_io_waiting_seconds_total[5m]) > 0.6
256 alertgroup: "{{ $labels.instance }}"
258 pressure: "{{ $value | humanizePercentage }}"
261 - alert: ipmi fan alarm
262 expr: ipmi_fan_speed_state > 0
265 alertgroup: "{{ $labels.instance }}"
267 fan_speed_rpm: "{{ with printf \"ipmi_fan_speed_rpm{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}rpm{{end}}"
268 - alert: ipmi temperature alarm
269 expr: ipmi_temperature_state > 0
272 alertgroup: "{{ $labels.instance }}"
274 temperature_celsius: "{{ with printf \"ipmi_temperature_celsius{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}C{{end}}"
275 - alert: ipmi voltage alarm
276 expr: ipmi_voltage_state > 0
279 alertgroup: "{{ $labels.instance }}"
281 voltage_volts: "{{ with printf \"ipmi_voltage_volts{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}V{{end}}"
282 - alert: ipmi power alarm
283 expr: ipmi_power_state > 0 or ipmi_sensor_state{type=~"Power .*"} > 0
286 alertgroup: "{{ $labels.instance }}"
289 - alert: juniper red alarms
290 expr: juniper_alarms_red_count > 0
293 alertgroup: "{{ $labels.site }}"
295 alarm_count: "{{ $value }} alarms"
296 - alert: juniper yellow alarms
297 expr: juniper_alarms_yellow_count > 0
300 alertgroup: "{{ $labels.site }}"
302 alarm_count: "{{ $value }} alarms"
303 - alert: juniper cpu alarm
304 expr: junos_route_engine_load_average_five / 2 > 0.5
307 alertgroup: "{{ $labels.site }}"
309 load_average: "{{ $value | humanizePercentage }}"
310 - alert: juniper fan alarm
311 expr: junos_environment_fan_up != 1
314 alertgroup: "{{ $labels.site }}"
315 - alert: juniper power alarm
316 expr: junos_environment_power_up != 1
319 alertgroup: "{{ $labels.site }}"
320 - alert: juniper laser receive power
321 expr: junos_interface_diagnostics_laser_rx_dbm < -12 and on (site, instance, name) junos_interface_admin_up == 1
324 alertgroup: "{{ $labels.site }}"
326 power: "{{ $value }} dBm"
327 - alert: juniper laser transmit power
328 expr: junos_interface_diagnostics_laser_output_dbm < -8 and on (site, instance, name) junos_interface_admin_up == 1
331 alertgroup: "{{ $labels.site }}"
333 power: "{{ $value }} dBm"
340 alertgroup: "{{ $labels.instance }}"
341 - alert: exim queue length
342 expr: exim_queue > ignoring(job) exim_queue_limit
347 queue_length: "{{ $value }}"
348 - alert: mailman queue length
349 expr: mailman_queue_length > 200
354 queue_length: "{{ $value }}"
357 - alert: mdadm array inactive
358 expr: node_md_state{state="inactive"} > 0
361 alertgroup: "{{ $labels.instance }}"
363 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
364 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
365 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
366 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
367 - alert: mdadm array degraded
368 expr: sum (node_md_disks{state="active"}) without (state) < node_md_disks_required
371 alertgroup: "{{ $labels.instance }}"
373 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
374 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
375 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
376 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
377 - alert: mdadm disk failed
378 expr: node_md_disks{state="failed"} > 0
381 alertgroup: "{{ $labels.instance }}"
383 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
384 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
385 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
386 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
390 expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes < 0.1
393 alertgroup: "{{ $labels.instance }}"
395 memory_free: "{{ $value | humanizePercentage }}"
396 - alert: memory pressure
397 expr: rate(node_pressure_memory_waiting_seconds_total[5m]) > 0.6
400 alertgroup: "{{ $labels.instance }}"
402 pressure: "{{ $value | humanizePercentage }}"
403 - alert: oom kill detected
404 expr: increase(node_vmstat_oom_kill[1m]) > 0
407 alertgroup: "{{ $labels.instance }}"
409 new_oom_kills: "{{ $value }}"
416 alertgroup: "{{ $labels.instance }}"
417 - alert: mysql connection limit
418 expr: mysql_global_status_max_used_connections / mysql_global_variables_max_connections > 0.8
421 alertgroup: "{{ $labels.instance }}"
423 connections_used: "{{ $value | humanizePercentage }}"
426 - alert: interface redundancy lost
427 expr: node_bonding_active < 2 and on (instance, master) label_replace(chef_network_interface{bond_mode="802.3ad"}, "master", "$1", "name", "(.*)")
430 alertgroup: "{{ $labels.instance }}"
432 link_count: "{{ $value }}"
433 - alert: interface transmit rate
434 expr: rate(node_network_transmit_bytes_total[1m]) / node_network_speed_bytes > 0.99
437 alertgroup: "{{ $labels.instance }}"
439 bandwidth_used: "{{ $value | humanizePercentage }}"
440 - alert: interface receive rate
441 expr: rate(node_network_receive_bytes_total[1m]) / node_network_speed_bytes > 0.99
444 alertgroup: "{{ $labels.instance }}"
446 bandwidth_used: "{{ $value | humanizePercentage }}"
447 - alert: interface transmit errors
448 expr: rate(node_network_transmit_errs_total{device!~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device!~"wg.*"}[1m]) > 0.01
451 alertgroup: "{{ $labels.instance }}"
453 error_rate: "{{ $value | humanizePercentage }}"
454 - alert: wireguard interface transmit errors
455 expr: rate(node_network_transmit_errs_total{device=~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device=~"wg.*"}[1m]) > 0.05
458 alertgroup: "{{ $labels.instance }}"
460 error_rate: "{{ $value | humanizePercentage }}"
461 - alert: interface receive errors
462 expr: rate(node_network_receive_errs_total[1m]) / rate(node_network_receive_packets_total[1m]) > 0.01
465 alertgroup: "{{ $labels.instance }}"
467 error_rate: "{{ $value | humanizePercentage }}"
468 - alert: conntrack entries
469 expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8
472 alertgroup: "{{ $labels.instance }}"
474 entries_used: "{{ $value | humanizePercentage }}"
477 - alert: nominatim replication delay
478 expr: nominatim_replication_delay > 10800
481 alertgroup: nominatim
483 delay: "{{ $value | humanizeDuration }}"
486 - alert: overpass osm database age
487 expr: overpass_database_age_seconds{database="osm"} > 3600
492 age: "{{ $value | humanizeDuration }}"
493 - alert: overpass area database age
494 expr: overpass_database_age_seconds{database="area"} > 86400
499 age: "{{ $value | humanizeDuration }}"
502 - alert: passenger down
503 expr: passenger_up == 0
506 alertgroup: "{{ $labels.instance }}"
507 - alert: passenger queuing
508 expr: passenger_top_level_request_queue > 0
511 alertgroup: "{{ $labels.instance }}"
512 - alert: passenger application queuing
513 expr: passenger_app_request_queue > 0
516 alertgroup: "{{ $labels.instance }}"
519 - alert: planet dump overdue
520 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/(pbf|planet)/.*"} > 7 * 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
525 overdue_by: "{{ $value | humanizeDuration }}"
526 - alert: notes dump overdue
527 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/notes/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
532 overdue_by: "{{ $value | humanizeDuration }}"
533 - alert: daily replication feed delayed
534 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/day/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
539 delayed_by: "{{ $value | humanizeDuration }}"
540 - alert: hourly replication feed delayed
541 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/hour/.*"} > 3600 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
546 delayed_by: "{{ $value | humanizeDuration }}"
547 - alert: minutely replication feed delayed
548 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/minute/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
553 delayed_by: "{{ $value | humanizeDuration }}"
554 - alert: changeset replication feed delayed
555 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/changesets/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
560 delayed_by: "{{ $value | humanizeDuration }}"
563 - alert: postgresql down
567 alertgroup: "{{ $labels.instance }}"
568 - alert: postgresql replication delay
569 expr: pg_replication_lag_seconds > 30
572 alertgroup: "{{ $labels.instance }}"
574 delay: "{{ $value | humanizeDuration }}"
575 - alert: postgresql connection limit
576 expr: sum (pg_stat_activity_count) by (instance, server) / sum (pg_settings_max_connections) by (instance, server) > 0.8
579 alertgroup: "{{ $labels.instance }}"
581 connections_used: "{{ $value | humanizePercentage }}"
582 - alert: postgresql deadlocks
583 expr: increase(pg_stat_database_deadlocks{datname!="nominatim"}[1m]) > 5
586 alertgroup: "{{ $labels.instance }}"
588 new_deadlocks: "{{ $value }}"
589 - alert: postgresql idle transactions
590 expr: sum(pg_process_idle_seconds_count{state="idle in transaction"}) by (instance, server) > sum(pg_process_idle_seconds_bucket{state="idle in transaction",le="300"}) by (instance, server)
593 alertgroup: "{{ $labels.instance }}"
595 queries: "{{ $value }}"
598 - alert: prometheus configuration error
599 expr: prometheus_config_last_reload_successful == 0
602 alertgroup: "prometheus"
603 - alert: prometheus target missing
607 alertgroup: "prometheus"
610 - alert: raid controller battery failed
611 expr: ohai_controller_info{battery_status="failed"} > 0
614 alertgroup: "{{ $labels.instance }}"
615 - alert: raid controller battery recharging
616 expr: ohai_controller_info{battery_status="recharging"} > 0
619 alertgroup: "{{ $labels.instance }}"
620 - alert: raid array degraded
621 expr: ohai_array_info{status="degraded"} > 0
624 alertgroup: "{{ $labels.instance }}"
625 - alert: raid disk failed
626 expr: ohai_disk_info{status="failed"} > 0
629 alertgroup: "{{ $labels.instance }}"
632 - alert: memory controller errors
633 expr: increase(rasdaemon_mc_events_total[1m]) > 0
636 alertgroup: "{{ $labels.instance }}"
638 new_errors: "{{ $value }}"
639 - alert: pcie aer errors
640 expr: increase(rasdaemon_aer_events_total[1m]) > 0
643 alertgroup: "{{ $labels.instance }}"
645 new_errors: "{{ $value }}"
648 - alert: smart failure
649 expr: smart_health_status == 0
652 alertgroup: "{{ $labels.instance }}"
653 - alert: smart ssd wearout approaching
654 expr: smart_percentage_used / 100 >= 0.8
657 alertgroup: "{{ $labels.instance }}"
659 percentage_used: "{{ $value | humanizePercentage }}"
663 expr: 1 - (rate(smokeping_response_duration_seconds_count[5m]) / rate(smokeping_requests_total[5m])) > 0.02
666 alertgroup: smokeping
668 loss_rate: "{{ $value | humanizePercentage }}"
671 - alert: snmp pdus missing
672 expr: max_over_time(snmp_scrape_pdus_returned[1d]) - snmp_scrape_pdus_returned > 0
677 missing_pdus: "{{ $value }}"
680 - alert: ssl certificate probe failed
681 expr: ssl_probe_success == 0
685 - alert: ssl certificate expiry
686 expr: ssl_verified_cert_not_after{chain_no="0"} - time() < 86400 * 14
691 expires_in: "{{ $value | humanizeDuration }}"
692 - alert: ssl certificate revoked
693 expr: ssl_ocsp_response_status == 1
697 - alert: ocsp status unknown
698 expr: ssl_ocsp_response_status == 1
704 - alert: statuscake uptime check failing
705 expr: statuscake_paused == 0 and statuscake_up == 0
708 alertgroup: statuscake
711 - alert: systemd failed service
712 expr: node_systemd_unit_state{state="failed",name!="chef-client.service"} == 1
715 alertgroup: "{{ $labels.instance }}"
716 - alert: systemd failed chef client service
717 expr: sum_over_time(node_systemd_unit_state{state="inactive",name="chef-client.service"}[6h]) == 0
720 alertgroup: "{{ $labels.instance }}"
723 - alert: taginfo planet age
724 expr: time() - taginfo_data_from_seconds > 129600 and on (instance) chef_role{name="taginfo"}
729 age: "{{ $value | humanizeDuration }}"
730 - alert: taginfo database age
731 expr: time() - taginfo_database_update_finish_seconds > 129600 and on (instance) chef_role{name="taginfo"}
736 age: "{{ $value | humanizeDuration }}"
737 - alert: taginfo database size
738 expr: abs(delta(taginfo_database_size_bytes[30m])) / taginfo_database_size_bytes > 0.1
743 size_change: "{{ $value | humanizePercentage }}"
746 - alert: renderd replication delay
747 expr: renderd_replication_delay > 120
752 delay: "{{ $value | humanizeDuration }}"
753 - alert: missed tile rate
754 expr: sum(rate(modtile_http_response_total{code="404"}[5m])) by (instance) / sum(rate(modtile_http_response_total[5m])) by (instance) > 0.05
759 miss_rate: "{{ $value | humanizePercentage }}"
760 - alert: tile render rate
761 expr: sum(rate(renderd_zoom_metatiles_total[5m])) by (instance) == 0
766 render_rate: "{{ $value }} tiles/s"
769 - alert: clock not synchronising
770 expr: min_over_time(node_timex_sync_status[1m]) == 0 and node_timex_maxerror_seconds >= 16
773 alertgroup: "{{ $labels.instance }}"
774 - alert: clock skew detected
775 expr: (node_timex_offset_seconds > 0.05 and deriv(node_timex_offset_seconds[5m]) >= 0) or (node_timex_offset_seconds < -0.05 and deriv(node_timex_offset_seconds[5m]) <= 0)
778 alertgroup: "{{ $labels.instance }}"
780 skew: "{{ with printf \"node_timex_offset_seconds{instance='%s'}\" $labels.instance | query }} {{ . | humanizeDuration }}{{ end }}"
783 - alert: web error rate
784 expr: sum(rate(api_call_count_total{status=~"50[0-8]|5[1-9][0-9]"}[5m])) by (instance) / sum(rate(api_call_count_total[5m])) by (instance) > 0.002
789 error_rate: "{{ $value | humanizePercentage }}"
790 - alert: job processing rate
791 expr: rate(pg_stat_user_tables_n_tup_del{datname="openstreetmap",relname="delayed_jobs"}[1h]) / rate(pg_stat_user_tables_n_tup_ins{datname="openstreetmap",relname="delayed_jobs"}[1h]) < 0.9 and ignoring(job, name, datname, relname, schemaname, server) chef_role{name="db-master"} == 1
796 job_processing_rate: "{{ $value | humanizePercentage }}"