1 # DO NOT EDIT - This file is being maintained by Chef
6 - alert: pdu current draw
7 expr: rPDU2PhaseStatusCurrent{site="amsterdam",rPDU2PhaseStatusIndex="1"} / 10 > 28
10 alertgroup: "amsterdam"
12 current: "{{ $value | humanize }}A"
14 expr: sum(avg_over_time(rPDU2PhaseStatusApparentPower{site="amsterdam",rPDU2PhaseStatusIndex="1"}[1h]) / 100) > 3.5
17 alertgroup: "amsterdam"
19 current: "{{ $value | humanize }}kVA"
20 - alert: site temperature
21 expr: min(rPDU2SensorTempHumidityStatusTempC{site="amsterdam"}) / 10 < 18 or min(rPDU2SensorTempHumidityStatusTempC{site="amsterdam"}) / 10 > 26
24 alertgroup: "amsterdam"
26 temperature: "{{ $value | humanize }}C"
27 - alert: site humidity
28 expr: max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="amsterdam"}) / 100 < 0.25 or max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="amsterdam"}) / 100 > 0.65
31 alertgroup: "amsterdam"
33 humidity: "{{ $value | humanizePercentage }}"
40 alertgroup: "{{ $labels.instance }}"
41 - alert: apache workers busy
42 expr: sum(apache_workers{state="busy"}) by (instance) / sum(apache_scoreboard) by (instance) > 0.8
45 alertgroup: "{{ $labels.instance }}"
47 busy_workers: "{{ $value | humanizePercentage }}"
48 - alert: apache low request rate
49 expr: rate(apache_accesses_total[5m]) / rate(apache_accesses_total[1h] offset 1w) < 0.25 and rate(apache_accesses_total[1h] offset 1w) > 2
52 alertgroup: "{{ $labels.instance }}"
54 request_rate: "{{ $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"
119 - alert: pdu current draw
120 expr: rPDU2PhaseStatusCurrent{site="dublin",rPDU2PhaseStatusIndex="1"} / 10 > 28
125 current: "{{ $value | humanize }}A"
127 expr: sum(avg_over_time(rPDU2PhaseStatusApparentPower{site="dublin",rPDU2PhaseStatusIndex="1"}[1h]) / 100) > 4
132 current: "{{ $value | humanize }}kVA"
133 - alert: site temperature
134 expr: min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 < 18 or min(rPDU2SensorTempHumidityStatusTempC{site="dublin"}) / 10 > 26
139 temperature: "{{ $value | humanize }}C"
140 - alert: site humidity
141 expr: max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 < 0.25 or max(rPDU2SensorTempHumidityStatusRelativeHumidity{site="dublin"}) / 100 > 0.65
146 humidity: "{{ $value | humanizePercentage }}"
149 - alert: fastly error rate
150 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
155 error_rate: "{{ $value | humanizePercentage }}"
156 - alert: fastly healthcheck failing
157 expr: count(fastly_healthcheck_status == 0) by (service) > 0
161 - alert: multiple fastly healthchecks failing
162 expr: count(fastly_healthcheck_status == 0) by (service) > 4
168 - alert: readonly filesystem
169 expr: node_filesystem_readonly > min_over_time(node_filesystem_readonly[7d])
172 alertgroup: "{{ $labels.instance }}"
173 - alert: filesystem low on space
174 expr: node_filesystem_avail_bytes / node_filesystem_size_bytes < 0.05
177 alertgroup: "{{ $labels.instance }}"
179 percentage_free: "{{ $value | humanizePercentage }}"
180 free_bytes: "{{ with printf \"node_filesystem_avail_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
181 total_total: "{{ with printf \"node_filesystem_size_bytes{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value | humanize1024 }}bytes{{end}}"
182 - alert: filesystem low on inodes
183 expr: node_filesystem_files_free / node_filesystem_files < 0.1
186 alertgroup: "{{ $labels.instance }}"
188 percentage_free: "{{ $value | humanizePercentage }}"
189 free_inodes: "{{ with printf \"node_filesystem_files_free{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
190 total_inodes: "{{ with printf \"node_filesystem_files{instance='%s',mountpoint='%s'}\" $labels.instance $labels.mountpoint | query }}{{ . | first | value }}{{end}}"
193 - alert: hwmon fan alarm
194 expr: node_hwmon_fan_alarm == 1
197 alertgroup: "{{ $labels.instance }}"
199 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}}"
200 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}}"
201 - alert: hwmon temperature alarm
202 expr: node_hwmon_temp_alarm == 1
205 alertgroup: "{{ $labels.instance }}"
207 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}}"
208 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}}"
209 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}}"
210 - alert: hwmon voltage alarm
211 expr: node_hwmon_in_alarm == 1
214 alertgroup: "{{ $labels.instance }}"
216 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}}"
217 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}}"
218 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}}"
222 expr: rate(node_pressure_io_waiting_seconds_total[5m]) > 0.6
225 alertgroup: "{{ $labels.instance }}"
227 pressure: "{{ $value | humanizePercentage }}"
230 - alert: ipmi fan alarm
231 expr: ipmi_fan_speed_state > 0
234 alertgroup: "{{ $labels.instance }}"
236 fan_speed_rpm: "{{ with printf \"ipmi_fan_speed_rpm{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}rpm{{end}}"
237 - alert: ipmi temperature alarm
238 expr: ipmi_temperature_state > 0
241 alertgroup: "{{ $labels.instance }}"
243 temperature_celsius: "{{ with printf \"ipmi_temperature_celsius{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}C{{end}}"
244 - alert: ipmi voltage alarm
245 expr: ipmi_voltage_state > 0
248 alertgroup: "{{ $labels.instance }}"
250 voltage_volts: "{{ with printf \"ipmi_voltage_volts{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}V{{end}}"
251 - alert: ipmi power alarm
252 expr: ipmi_power_state > 0 or ipmi_sensor_state{type=~"Power .*"} > 0
255 alertgroup: "{{ $labels.instance }}"
258 - alert: juniper cpu alarm
259 expr: jnxOperatingCPU{jnxOperatingContentsIndex="7"} > 30
262 alertgroup: "{{ $labels.site }}"
263 - alert: juniper fan alarm
264 expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0
267 alertgroup: "{{ $labels.site }}"
268 - alert: juniper power alarm
269 expr: jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"} > 0
272 alertgroup: "{{ $labels.site }}"
279 alertgroup: "{{ $labels.instance }}"
280 - alert: exim queue length
281 expr: exim_queue > exim_queue_limit
286 queue_length: "{{ $value }}"
287 - alert: mailman queue length
288 expr: mailman_queue_length > 200
293 queue_length: "{{ $value }}"
296 - alert: mdadm array inactive
297 expr: node_md_state{state="inactive"} > 0
300 alertgroup: "{{ $labels.instance }}"
302 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
303 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
304 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
305 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
306 - alert: mdadm array degraded
307 expr: sum (node_md_disks{state="active"}) without (state) < node_md_disks_required
310 alertgroup: "{{ $labels.instance }}"
312 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
313 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
314 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
315 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
316 - alert: mdadm disk failed
317 expr: node_md_disks{state="failed"} > 0
320 alertgroup: "{{ $labels.instance }}"
322 required: "{{ with printf \"node_md_disks_required{instance='%s',device='%s'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
323 active: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='active'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
324 failed: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='failed'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
325 spare: "{{ with printf \"node_md_disks{instance='%s',device='%s',state='spare'}\" $labels.instance $labels.device | query }}{{ . | first | value | humanize }} disks{{end}}"
329 expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes < 0.1
332 alertgroup: "{{ $labels.instance }}"
334 memory_free: "{{ $value | humanizePercentage }}"
335 - alert: memory pressure
336 expr: rate(node_pressure_memory_waiting_seconds_total[5m]) > 0.6
339 alertgroup: "{{ $labels.instance }}"
341 pressure: "{{ $value | humanizePercentage }}"
342 - alert: oom kill detected
343 expr: increase(node_vmstat_oom_kill[1m]) > 0
346 alertgroup: "{{ $labels.instance }}"
348 new_oom_kills: "{{ $value }}"
355 alertgroup: "{{ $labels.instance }}"
356 - alert: mysql connection limit
357 expr: mysql_global_status_max_used_connections / mysql_global_variables_max_connections > 0.8
360 alertgroup: "{{ $labels.instance }}"
362 connections_used: "{{ $value | humanizePercentage }}"
365 - alert: interface transmit rate
366 expr: rate(node_network_transmit_bytes_total[1m]) / node_network_speed_bytes > 0.99
369 alertgroup: "{{ $labels.instance }}"
371 bandwidth_used: "{{ $value | humanizePercentage }}"
372 - alert: interface receive rate
373 expr: rate(node_network_receive_bytes_total[1m]) / node_network_speed_bytes > 0.99
376 alertgroup: "{{ $labels.instance }}"
378 bandwidth_used: "{{ $value | humanizePercentage }}"
379 - alert: interface transmit errors
380 expr: rate(node_network_transmit_errs_total{device!~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device!~"wg.*"}[1m]) > 0.01
383 alertgroup: "{{ $labels.instance }}"
385 error_rate: "{{ $value | humanizePercentage }}"
386 - alert: wireguard interface transmit errors
387 expr: rate(node_network_transmit_errs_total{device=~"wg.*"}[1m]) / rate(node_network_transmit_packets_total{device=~"wg.*"}[1m]) > 0.05
390 alertgroup: "{{ $labels.instance }}"
392 error_rate: "{{ $value | humanizePercentage }}"
393 - alert: interface receive errors
394 expr: rate(node_network_receive_errs_total[1m]) / rate(node_network_receive_packets_total[1m]) > 0.01
397 alertgroup: "{{ $labels.instance }}"
399 error_rate: "{{ $value | humanizePercentage }}"
400 - alert: conntrack entries
401 expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8
404 alertgroup: "{{ $labels.instance }}"
406 entries_used: "{{ $value | humanizePercentage }}"
409 - alert: nominatim replication delay
410 expr: nominatim_replication_delay > 10800
413 alertgroup: nominatim
415 delay: "{{ $value | humanizeDuration }}"
418 - alert: overpass osm database age
419 expr: overpass_database_age_seconds{database="osm"} > 3600
424 age: "{{ $value | humanizeDuration }}"
425 - alert: overpass area database age
426 expr: overpass_database_age_seconds{database="area"} > 86400
431 age: "{{ $value | humanizeDuration }}"
434 - alert: passenger down
435 expr: passenger_up == 0
438 alertgroup: "{{ $labels.instance }}"
439 - alert: passenger queuing
440 expr: passenger_top_level_request_queue > 0
443 alertgroup: "{{ $labels.instance }}"
444 - alert: passenger application queuing
445 expr: passenger_app_request_queue > 0
448 alertgroup: "{{ $labels.instance }}"
451 - alert: planet dump overdue
452 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/(pbf|planet)/.*"} > 7 * 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
457 overdue_by: "{{ $value | humanizeDuration }}"
458 - alert: notes dump overdue
459 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/notes/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
464 overdue_by: "{{ $value | humanizeDuration }}"
465 - alert: daily replication feed delayed
466 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/day/.*"} > 86400 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
471 delayed_by: "{{ $value | humanizeDuration }}"
472 - alert: hourly replication feed delayed
473 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/hour/.*"} > 3600 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
478 delayed_by: "{{ $value | humanizeDuration }}"
479 - alert: minutely replication feed delayed
480 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/minute/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
485 delayed_by: "{{ $value | humanizeDuration }}"
486 - alert: changeset replication feed delayed
487 expr: time() - file_stat_modif_time_seconds{path=~"/store/planet/replication/changesets/.*"} > 60 and ignoring (job, name, path) chef_role{name="planetdump"} == 1
492 delayed_by: "{{ $value | humanizeDuration }}"
495 - alert: postgresql down
499 alertgroup: "{{ $labels.instance }}"
500 - alert: postgresql replication delay
501 expr: pg_replication_lag_seconds > 30
504 alertgroup: "{{ $labels.instance }}"
506 delay: "{{ $value | humanizeDuration }}"
507 - alert: postgresql connection limit
508 expr: sum (pg_stat_activity_count) by (instance, server) / sum (pg_settings_max_connections) by (instance, server) > 0.8
511 alertgroup: "{{ $labels.instance }}"
513 connections_used: "{{ $value | humanizePercentage }}"
514 - alert: postgresql deadlocks
515 expr: increase(pg_stat_database_deadlocks{datname!="nominatim"}[1m]) > 5
518 alertgroup: "{{ $labels.instance }}"
520 new_deadlocks: "{{ $value }}"
521 - alert: postgresql slow queries
522 expr: pg_slow_queries > 0
525 alertgroup: "{{ $labels.instance }}"
527 queries: "{{ $value }}"
528 - alert: postgresql idle transactions
529 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)
532 alertgroup: "{{ $labels.instance }}"
534 queries: "{{ $value }}"
537 - alert: prometheus configuration error
538 expr: prometheus_config_last_reload_successful == 0
541 alertgroup: "prometheus"
542 - alert: prometheus target missing
546 alertgroup: "prometheus"
549 - alert: raid controller battery failed
550 expr: ohai_controller_info{battery_status="failed"} > 0
553 alertgroup: "{{ $labels.instance }}"
554 - alert: raid controller battery recharging
555 expr: ohai_controller_info{battery_status="recharging"} > 0
558 alertgroup: "{{ $labels.instance }}"
559 - alert: raid array degraded
560 expr: ohai_array_info{status="degraded"} > 0
563 alertgroup: "{{ $labels.instance }}"
564 - alert: raid disk failed
565 expr: ohai_disk_info{status="failed"} > 0
568 alertgroup: "{{ $labels.instance }}"
571 - alert: memory controller errors
572 expr: increase(rasdaemon_mc_events_total[1m]) > 0
575 alertgroup: "{{ $labels.instance }}"
577 new_errors: "{{ $value }}"
578 - alert: pcie aer errors
579 expr: increase(rasdaemon_aer_events_total[1m]) > 0
582 alertgroup: "{{ $labels.instance }}"
584 new_errors: "{{ $value }}"
587 - alert: smart failure
588 expr: smart_health_status == 0
591 alertgroup: "{{ $labels.instance }}"
592 - alert: smart ssd wearout approaching
593 expr: smart_percentage_used / 100 >= 0.8
596 alertgroup: "{{ $labels.instance }}"
598 percentage_used: "{{ $value | humanizePercentage }}"
602 expr: 1 - (rate(smokeping_response_duration_seconds_count[5m]) / rate(smokeping_requests_total[5m])) > 0.02
605 alertgroup: smokeping
607 loss_rate: "{{ $value | humanizePercentage }}"
610 - alert: snmp pdus missing
611 expr: max_over_time(snmp_scrape_pdus_returned[1d]) - snmp_scrape_pdus_returned > 0
616 missing_pdus: "{{ $value }}"
619 - alert: ssl certificate probe failed
620 expr: ssl_probe_success == 0
624 - alert: ssl certificate expiry
625 expr: ssl_verified_cert_not_after{chain_no="0"} - time() < 86400 * 14
630 expires_in: "{{ $value | humanizeDuration }}"
631 - alert: ssl certificate revoked
632 expr: ssl_ocsp_response_status == 1
636 - alert: ocsp status unknown
637 expr: ssl_ocsp_response_status == 1
643 - alert: statuscake uptime check failing
644 expr: statuscake_paused == 0 and statuscake_up == 0
647 alertgroup: statuscake
650 - alert: systemd failed service
651 expr: node_systemd_unit_state{state="failed",name!="chef-client.service"} == 1
654 alertgroup: "{{ $labels.instance }}"
655 - alert: systemd failed chef client service
656 expr: sum_over_time(node_systemd_unit_state{state="inactive",name="chef-client.service"}[6h]) == 0
659 alertgroup: "{{ $labels.instance }}"
662 - alert: taginfo planet age
663 expr: time() - taginfo_data_from_seconds > 129600
668 age: "{{ $value | humanizeDuration }}"
669 - alert: taginfo database age
670 expr: time() - taginfo_database_update_finish_seconds > 129600
675 age: "{{ $value | humanizeDuration }}"
676 - alert: taginfo database size
677 expr: abs(delta(taginfo_database_size_bytes[30m])) / taginfo_database_size_bytes > 0.1
682 size_change: "{{ $value | humanizePercentage }}"
685 - alert: renderd replication delay
686 expr: renderd_replication_delay > 120
691 delay: "{{ $value | humanizeDuration }}"
692 - alert: missed tile rate
693 expr: sum(rate(modtile_http_response_total{code="404"}[5m])) by (instance) / sum(rate(modtile_http_response_total[5m])) by (instance) > 0.05
698 miss_rate: "{{ $value | humanizePercentage }}"
699 - alert: tile render rate
700 expr: sum(rate(renderd_zoom_metatiles_total[5m])) by (instance) == 0
705 render_rate: "{{ $value }} tiles/s"
708 - alert: clock not synchronising
709 expr: min_over_time(node_timex_sync_status[1m]) == 0 and node_timex_maxerror_seconds >= 16
712 alertgroup: "{{ $labels.instance }}"
713 - alert: clock skew detected
714 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)
717 alertgroup: "{{ $labels.instance }}"
719 skew: "{{ with printf \"node_timex_offset_seconds{instance='%s'}\" $labels.instance | query }} {{ . | humanizeDuration }}{{ end }}"
722 - alert: web error rate
723 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
728 error_rate: "{{ $value | humanizePercentage }}"
729 - alert: job processing rate
730 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
735 job_processing_rate: "{{ $value | humanizePercentage }}"