1 # DO NOT EDIT - This file is being maintained by Chef
7 expr: ifOperStatus{site="amsterdam",ifName=~"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 }}"
57 - alert: chef client not running
58 expr: time() - node_systemd_timer_last_trigger_seconds{name="chef-client.timer"} > 3600
61 alertgroup: "{{ $labels.instance }}"
63 down_time: "{{ $value | humanizeDuration }}"
66 - alert: cisco fan alarm
67 expr: rlPhdUnitEnvParamFan1Status{rlPhdUnitEnvParamFan1Status!="normal"} > 0 or rlPhdUnitEnvParamFan2Status{rlPhdUnitEnvParamFan2Status!="normal"} > 0
70 alertgroup: "{{ $labels.site }}"
72 fan_rpm: "{{ with printf \"rlPhdUnitEnvParamFan1Speed{site='%s',instance='%s',rlPhdUnitEnvParamStackUnit='%s'}\" $labels.site $labels.instance $labels.rlPhdUnitEnvParamStackUnit | query }}{{ . | first | value | humanize }}rpm{{end}}"
73 - alert: cisco temperature alarm
74 expr: rlPhdUnitEnvParamTempSensorStatus{rlPhdUnitEnvParamTempSensorStatus!="ok"} > 0
77 alertgroup: "{{ $labels.site }}"
79 temp_celsius: "{{ with printf \"rlPhdUnitEnvParamTempSensorValue{site='%s',instance='%s',rlPhdUnitEnvParamStackUnit='%s'}\" $labels.site $labels.instance $labels.rlPhdUnitEnvParamStackUnit | query }}{{ . | first | value | humanize }}C{{end}}"
80 - alert: cisco main power alarm
81 expr: rlPhdUnitEnvParamMainPSStatus{rlPhdUnitEnvParamMainPSStatus!="normal"} > 0
84 alertgroup: "{{ $labels.site }}"
85 - alert: cisco redundant power alarm
86 expr: rlPhdUnitEnvParamRedundantPSStatus{rlPhdUnitEnvParamRedundantPSStatus!="normal"} > 0
89 alertgroup: "{{ $labels.site }}"
93 expr: rate(node_pressure_cpu_waiting_seconds_total[5m]) > 0.75
96 alertgroup: "{{ $labels.instance }}"
98 pressure: "{{ $value | humanizePercentage }}"
101 - alert: postgres replication delay
102 expr: pg_replication_lag_seconds > 30
107 delay: "{{ $value | humanizeDuration }}"
110 - alert: discourse job failure rate
111 expr: rate(discourse_job_failures[5m]) > 0
114 alertgroup: discourse
116 failure_rate: "{{ $value }} jobs/s"
120 expr: ifOperStatus{site="dublin",ifName=~"ge-[01]/2/2"} != 1
125 status: "{{ $value }}"
126 - alert: pdu current draw
127 expr: rPDU2PhaseStatusCurrent{site="dublin",rPDU2PhaseStatusIndex="1"} / 10 > 28
132 current: "{{ $value | humanize }}A"
134 expr: sum(avg_over_time(rPDU2PhaseStatusApparentPower{site="dublin",rPDU2PhaseStatusIndex="1"}[1h]) / 100) > 4
139 current: "{{ $value | humanize }}kVA"
140 - alert: site temperature
141 expr: min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 < 18 or min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 > 26
146 temperature: "{{ $value | humanize }}C"
147 - alert: site humidity
148 expr: max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 < 0.25 or max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 > 0.65
153 humidity: "{{ $value | humanizePercentage }}"
156 - alert: fastly error rate
157 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
162 error_rate: "{{ $value | humanizePercentage }}"
163 - alert: fastly frontend healthcheck warning
164 expr: count(fastly_healthcheck_status == 0) by (service, datacenter) > 2
168 - alert: fastly frontend healthcheck critical
169 expr: count(fastly_healthcheck_status == 0) by (service, datacenter) == count(fastly_healthcheck_status) by (service, datacenter)
173 - alert: fastly backend healthcheck warning
174 expr: count(fastly_healthcheck_status == 0) by (service, backend) > 10
178 - alert: fastly backend healthcheck critical
179 expr: count(fastly_healthcheck_status == 0) by (service, backend) == count(fastly_healthcheck_status) by (service, backend)
185 - alert: readonly filesystem
186 expr: node_filesystem_readonly > min_over_time(node_filesystem_readonly[7d])
189 alertgroup: "{{ $labels.instance }}"
190 - alert: filesystem low on space
191 expr: node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.05
194 alertgroup: "{{ $labels.instance }}"
196 percentage_free: "{{ $value | humanizePercentage }}"
197 free_bytes: "{{ with printf \"node_filesystem_avail_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
198 total_total: "{{ with printf \"node_filesystem_size_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
199 - alert: filesystem low on inodes
200 expr: node_filesystem_files_free / node_filesystem_files < 0.1
203 alertgroup: "{{ $labels.instance }}"
205 percentage_free: "{{ $value | humanizePercentage }}"
206 free_inodes: "{{ with printf \"node_filesystem_files_free{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
207 total_inodes: "{{ with printf \"node_filesystem_files{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
210 - alert: hwmon fan alarm
211 expr: node_hwmon_fan_alarm == 1
214 alertgroup: "{{ $labels.instance }}"
216 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}}"
217 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}}"
218 - alert: hwmon temperature alarm
219 expr: node_hwmon_temp_alarm == 1
222 alertgroup: "{{ $labels.instance }}"
224 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}}"
225 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}}"
226 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}}"
227 - alert: hwmon voltage alarm
228 expr: node_hwmon_in_alarm == 1
231 alertgroup: "{{ $labels.instance }}"
233 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}}"
234 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}}"
235 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}}"
239 expr: rate(node_pressure_io_waiting_seconds_total[5m]) > 0.6
242 alertgroup: "{{ $labels.instance }}"
244 pressure: "{{ $value | humanizePercentage }}"
247 - alert: ipmi fan alarm
248 expr: ipmi_fan_speed_state > 0
251 alertgroup: "{{ $labels.instance }}"
253 fan_speed_rpm: "{{ with printf \"ipmi_fan_speed_rpm{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}rpm{{end}}"
254 - alert: ipmi temperature alarm
255 expr: ipmi_temperature_state > 0
258 alertgroup: "{{ $labels.instance }}"
260 temperature_celsius: "{{ with printf \"ipmi_temperature_celsius{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}C{{end}}"
261 - alert: ipmi voltage alarm
262 expr: ipmi_voltage_state > 0
265 alertgroup: "{{ $labels.instance }}"
267 voltage_volts: "{{ with printf \"ipmi_voltage_volts{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}V{{end}}"
268 - alert: ipmi power alarm
269 expr: ipmi_power_state > 0 or ipmi_sensor_state{type=~"Power .*"} > 0
272 alertgroup: "{{ $labels.instance }}"
275 - alert: juniper cpu alarm
276 expr: jnxOperating5MinLoadAvg{jnxOperatingContentsIndex="9"} / 200 > 0.5
279 alertgroup: "{{ $labels.site }}"
281 load_average: "{{ $value | humanizePercentage }}"
282 - alert: juniper fan alarm
283 expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0
286 alertgroup: "{{ $labels.site }}"
287 - alert: juniper power alarm
288 expr: jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"} > 0
291 alertgroup: "{{ $labels.site }}"
298 alertgroup: "{{ $labels.instance }}"
299 - alert: exim queue length
300 expr: exim_queue > ignoring(job) exim_queue_limit
305 queue_length: "{{ $value }}"
306 - alert: mailman queue length
307 expr: mailman_queue_length > 200
312 queue_length: "{{ $value }}"
315 - alert: mdadm array inactive
316 expr: node_md_state{state="inactive"} > 0
319 alertgroup: "{{ $labels.instance }}"
321 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
322 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
323 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
324 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
325 - alert: mdadm array degraded
326 expr: sum (node_md_disks{state="active"}) without (state) < node_md_disks_required
329 alertgroup: "{{ $labels.instance }}"
331 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
332 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
333 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
334 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
335 - alert: mdadm disk failed
336 expr: node_md_disks{state="failed"} > 0
339 alertgroup: "{{ $labels.instance }}"
341 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
342 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
343 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
344 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
348 expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes < 0.1
351 alertgroup: "{{ $labels.instance }}"
353 memory_free: "{{ $value | humanizePercentage }}"
354 - alert: memory pressure
355 expr: rate(node_pressure_memory_waiting_seconds_total[5m]) > 0.6
358 alertgroup: "{{ $labels.instance }}"
360 pressure: "{{ $value | humanizePercentage }}"
361 - alert: oom kill detected
362 expr: increase(node_vmstat_oom_kill[1m]) > 0
365 alertgroup: "{{ $labels.instance }}"
367 new_oom_kills: "{{ $value }}"
374 alertgroup: "{{ $labels.instance }}"
375 - alert: mysql connection limit
376 expr: mysql_global_status_max_used_connections / mysql_global_variables_max_connections > 0.8
379 alertgroup: "{{ $labels.instance }}"
381 connections_used: "{{ $value | humanizePercentage }}"
384 - alert: interface transmit rate
385 expr: rate(node_network_transmit_bytes_total[1m]) / node_network_speed_bytes > 0.99
388 alertgroup: "{{ $labels.instance }}"
390 bandwidth_used: "{{ $value | humanizePercentage }}"
391 - alert: interface receive rate
392 expr: rate(node_network_receive_bytes_total[1m]) / node_network_speed_bytes > 0.99
395 alertgroup: "{{ $labels.instance }}"
397 bandwidth_used: "{{ $value | humanizePercentage }}"
398 - alert: interface transmit errors
399 expr: rate(node_network_transmit_errs_total{device!~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device!~"wg.*"}[1m]) > 0.01
402 alertgroup: "{{ $labels.instance }}"
404 error_rate: "{{ $value | humanizePercentage }}"
405 - alert: wireguard interface transmit errors
406 expr: rate(node_network_transmit_errs_total{device=~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device=~"wg.*"}[1m]) > 0.05
409 alertgroup: "{{ $labels.instance }}"
411 error_rate: "{{ $value | humanizePercentage }}"
412 - alert: interface receive errors
413 expr: rate(node_network_receive_errs_total[1m]) / rate(node_network_receive_packets_total[1m]) > 0.01
416 alertgroup: "{{ $labels.instance }}"
418 error_rate: "{{ $value | humanizePercentage }}"
419 - alert: conntrack entries
420 expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8
423 alertgroup: "{{ $labels.instance }}"
425 entries_used: "{{ $value | humanizePercentage }}"
428 - alert: nominatim replication delay
429 expr: nominatim_replication_delay > 10800
432 alertgroup: nominatim
434 delay: "{{ $value | humanizeDuration }}"
437 - alert: overpass osm database age
438 expr: overpass_database_age_seconds{database="osm"} > 3600
443 age: "{{ $value | humanizeDuration }}"
444 - alert: overpass area database age
445 expr: overpass_database_age_seconds{database="area"} > 86400
450 age: "{{ $value | humanizeDuration }}"
453 - alert: passenger down
454 expr: passenger_up == 0
457 alertgroup: "{{ $labels.instance }}"
458 - alert: passenger queuing
459 expr: passenger_top_level_request_queue > 0
462 alertgroup: "{{ $labels.instance }}"
463 - alert: passenger application queuing
464 expr: passenger_app_request_queue > 0
467 alertgroup: "{{ $labels.instance }}"
470 - alert: planet dump overdue
471 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/(pbf|planet)/.*"} > 7 * 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
476 overdue_by: "{{ $value | humanizeDuration }}"
477 - alert: notes dump overdue
478 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/notes/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
483 overdue_by: "{{ $value | humanizeDuration }}"
484 - alert: daily replication feed delayed
485 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/day/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
490 delayed_by: "{{ $value | humanizeDuration }}"
491 - alert: hourly replication feed delayed
492 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/hour/.*"} > 3600 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
497 delayed_by: "{{ $value | humanizeDuration }}"
498 - alert: minutely replication feed delayed
499 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/minute/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
504 delayed_by: "{{ $value | humanizeDuration }}"
505 - alert: changeset replication feed delayed
506 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/changesets/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
511 delayed_by: "{{ $value | humanizeDuration }}"
514 - alert: postgresql down
518 alertgroup: "{{ $labels.instance }}"
519 - alert: postgresql replication delay
520 expr: pg_replication_lag_seconds > 30
523 alertgroup: "{{ $labels.instance }}"
525 delay: "{{ $value | humanizeDuration }}"
526 - alert: postgresql connection limit
527 expr: sum (pg_stat_activity_count) by (instance, server) / sum (pg_settings_max_connections) by (instance, server) > 0.8
530 alertgroup: "{{ $labels.instance }}"
532 connections_used: "{{ $value | humanizePercentage }}"
533 - alert: postgresql deadlocks
534 expr: increase(pg_stat_database_deadlocks{datname!="nominatim"}[1m]) > 5
537 alertgroup: "{{ $labels.instance }}"
539 new_deadlocks: "{{ $value }}"
540 - alert: postgresql slow queries
541 expr: pg_slow_queries > 0
544 alertgroup: "{{ $labels.instance }}"
546 queries: "{{ $value }}"
547 - alert: postgresql idle transactions
548 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)
551 alertgroup: "{{ $labels.instance }}"
553 queries: "{{ $value }}"
556 - alert: prometheus configuration error
557 expr: prometheus_config_last_reload_successful == 0
560 alertgroup: "prometheus"
561 - alert: prometheus target missing
565 alertgroup: "prometheus"
568 - alert: raid controller battery failed
569 expr: ohai_controller_info{battery_status="failed"} > 0
572 alertgroup: "{{ $labels.instance }}"
573 - alert: raid controller battery recharging
574 expr: ohai_controller_info{battery_status="recharging"} > 0
577 alertgroup: "{{ $labels.instance }}"
578 - alert: raid array degraded
579 expr: ohai_array_info{status="degraded"} > 0
582 alertgroup: "{{ $labels.instance }}"
583 - alert: raid disk failed
584 expr: ohai_disk_info{status="failed"} > 0
587 alertgroup: "{{ $labels.instance }}"
590 - alert: memory controller errors
591 expr: increase(rasdaemon_mc_events_total[1m]) > 0
594 alertgroup: "{{ $labels.instance }}"
596 new_errors: "{{ $value }}"
597 - alert: pcie aer errors
598 expr: increase(rasdaemon_aer_events_total[1m]) > 0
601 alertgroup: "{{ $labels.instance }}"
603 new_errors: "{{ $value }}"
606 - alert: smart failure
607 expr: smart_health_status == 0
610 alertgroup: "{{ $labels.instance }}"
611 - alert: smart ssd wearout approaching
612 expr: smart_percentage_used / 100 >= 0.8
615 alertgroup: "{{ $labels.instance }}"
617 percentage_used: "{{ $value | humanizePercentage }}"
621 expr: 1 - (rate(smokeping_response_duration_seconds_count[5m]) / rate(smokeping_requests_total[5m])) > 0.02
624 alertgroup: smokeping
626 loss_rate: "{{ $value | humanizePercentage }}"
629 - alert: snmp pdus missing
630 expr: max_over_time(snmp_scrape_pdus_returned[1d]) - snmp_scrape_pdus_returned > 0
635 missing_pdus: "{{ $value }}"
638 - alert: ssl certificate probe failed
639 expr: ssl_probe_success == 0
643 - alert: ssl certificate expiry
644 expr: ssl_verified_cert_not_after{chain_no="0"} - time() < 86400 * 14
649 expires_in: "{{ $value | humanizeDuration }}"
650 - alert: ssl certificate revoked
651 expr: ssl_ocsp_response_status == 1
655 - alert: ocsp status unknown
656 expr: ssl_ocsp_response_status == 1
662 - alert: statuscake uptime check failing
663 expr: statuscake_paused == 0 and statuscake_up == 0
666 alertgroup: statuscake
669 - alert: systemd failed service
670 expr: node_systemd_unit_state{state="failed",name!="chef-client.service"} == 1
673 alertgroup: "{{ $labels.instance }}"
674 - alert: systemd failed chef client service
675 expr: sum_over_time(node_systemd_unit_state{state="inactive",name="chef-client.service"}[6h]) == 0
678 alertgroup: "{{ $labels.instance }}"
681 - alert: taginfo planet age
682 expr: time() - taginfo_data_from_seconds > 129600
687 age: "{{ $value | humanizeDuration }}"
688 - alert: taginfo database age
689 expr: time() - taginfo_database_update_finish_seconds > 129600
694 age: "{{ $value | humanizeDuration }}"
695 - alert: taginfo database size
696 expr: abs(delta(taginfo_database_size_bytes[30m])) / taginfo_database_size_bytes > 0.1
701 size_change: "{{ $value | humanizePercentage }}"
704 - alert: renderd replication delay
705 expr: renderd_replication_delay > 120
710 delay: "{{ $value | humanizeDuration }}"
711 - alert: missed tile rate
712 expr: sum(rate(modtile_http_response_total{code="404"}[5m])) by (instance) / sum(rate(modtile_http_response_total[5m])) by (instance) > 0.05
717 miss_rate: "{{ $value | humanizePercentage }}"
718 - alert: tile render rate
719 expr: sum(rate(renderd_zoom_metatiles_total[5m])) by (instance) == 0
724 render_rate: "{{ $value }} tiles/s"
727 - alert: clock not synchronising
728 expr: min_over_time(node_timex_sync_status[1m]) == 0 and node_timex_maxerror_seconds >= 16
731 alertgroup: "{{ $labels.instance }}"
732 - alert: clock skew detected
733 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)
736 alertgroup: "{{ $labels.instance }}"
738 skew: "{{ with printf \"node_timex_offset_seconds{instance='%s'}\" $labels.instance | query }} {{ . | humanizeDuration }}{{ end }}"
741 - alert: web error rate
742 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
747 error_rate: "{{ $value | humanizePercentage }}"
748 - alert: job processing rate
749 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
754 job_processing_rate: "{{ $value | humanizePercentage }}"