Mercurial > code > home > repos > victoriametrics
changeset 42:2f87ecd2a754
fix ping; add ping to prime
author | drewp@bigasterisk.com |
---|---|
date | Tue, 23 Jan 2024 14:56:51 -0800 |
parents | 407ee7fbda13 |
children | f05be84926e2 |
files | alert_rules.py config/scrape_main.yaml |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/alert_rules.py Tue Jan 23 14:56:33 2024 -0800 +++ b/alert_rules.py Tue Jan 23 14:56:51 2024 -0800 @@ -252,6 +252,14 @@ ], }, { + "name": "ping", + "interval": "1m", + "rules": [{ + "alert": "ping_failed", + "expr": 'max_over_time(probe_success{job="ping"}[1m]) < 1', + }] + }, + { "name": "alerts", "rules": [
--- a/config/scrape_main.yaml Tue Jan 23 14:56:33 2024 -0800 +++ b/config/scrape_main.yaml Tue Jan 23 14:56:51 2024 -0800 @@ -182,7 +182,9 @@ static_configs: - targets: # printer, since it falls out of ntop with no traffic at all. Or, we could poll ink status at http://10.2.0.37/general/status.html?pageid=1 - - printer014032ED + - printer + # wireguard connection test + - prime5 relabel_configs: - {source_labels: [__address__], target_label: __param_target} - {source_labels: [__param_target], target_label: instance}