diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-11-06 13:41:31 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-11-06 13:41:31 +0100 |
commit | 17a6585e08575ec36ec7b72c5826964841930052 (patch) | |
tree | 6584132649e0e314a8b7ad8bbaeddb59a53e57f3 | |
parent | update nextcloud instances on cloudio (diff) |
fix smartmon monitoring rule
-rw-r--r-- | inventory/host_vars/ch-mon.yml | 2 | ||||
-rw-r--r-- | inventory/host_vars/ch-testvm-prometheus.yml | 3 | ||||
-rw-r--r-- | roles/monitoring/prometheus/server/defaults/main/rules_node.yml | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml index c6a5648f..576eb711 100644 --- a/inventory/host_vars/ch-mon.yml +++ b/inventory/host_vars/ch-mon.yml @@ -119,7 +119,7 @@ prometheus_server_jobs_extra: | - job_name: 'node-helsinki' static_configs: - targets: - - 192.168.28.77:9100 + - 192.168.42.250:9100 labels: instance: rh-router-apu metric_relabel_configs: diff --git a/inventory/host_vars/ch-testvm-prometheus.yml b/inventory/host_vars/ch-testvm-prometheus.yml index 089b1571..22320ce5 100644 --- a/inventory/host_vars/ch-testvm-prometheus.yml +++ b/inventory/host_vars/ch-testvm-prometheus.yml @@ -40,9 +40,6 @@ spreadspace_apt_repo_components: ntp_variant: chrony ntp_client: - servers: - - name: 192.168.28.77 - options: iburst minpoll 3 maxpoll 5 pools: - name: at.pool.ntp.org options: iburst diff --git a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml index af47e7f7..6a77b105 100644 --- a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml +++ b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml @@ -282,7 +282,7 @@ prometheus_server_rules_node: description: "The deleted library {{ '{{' }} $labels.library_name {{ '}}' }} on host {{ '{{' }} $labels.instance {{ '}}' }} is still in use by {{ '{{' }} $value {{ '}}' }} processes.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}" - alert: SmartmonMetricsOutdated - expr: smartmon_smartctl_run - time() > 7200 + expr: time() - smartmon_smartctl_run > 3600 for: 0m labels: severity: warning |