From 53234ab0e577e648c3018af99483c7ba61a97292 Mon Sep 17 00:00:00 2001 From: Mateusz Matuszkowiak Date: Tue, 20 Mar 2018 14:12:30 +0100 Subject: [PATCH] Use max instead of min Since these services are replicated (two per service), we should check for the max, not min, as one of the replicas could be down, but still the API is Up. Change-Id: I6dad9b74d65415f5f4f91e00c732792010487619 --- .../files/grafana_dashboards/alertmanager_prometheus.json | 2 +- prometheus/files/grafana_dashboards/pushgateway_prometheus.json | 2 +- .../grafana_dashboards/remote_storage_adapter_prometheus.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/prometheus/files/grafana_dashboards/alertmanager_prometheus.json b/prometheus/files/grafana_dashboards/alertmanager_prometheus.json index 7223fdc..64fecac 100644 --- a/prometheus/files/grafana_dashboards/alertmanager_prometheus.json +++ b/prometheus/files/grafana_dashboards/alertmanager_prometheus.json @@ -72,7 +72,7 @@ "tableColumn": "", "targets": [ { - "expr": "min(up{job=\"alertmanager\"})", + "expr": "max(up{job=\"alertmanager\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "", diff --git a/prometheus/files/grafana_dashboards/pushgateway_prometheus.json b/prometheus/files/grafana_dashboards/pushgateway_prometheus.json index bb24831..e1e341c 100644 --- a/prometheus/files/grafana_dashboards/pushgateway_prometheus.json +++ b/prometheus/files/grafana_dashboards/pushgateway_prometheus.json @@ -72,7 +72,7 @@ "tableColumn": "", "targets": [ { - "expr": "min(up{job=\"pushgateway\"})", + "expr": "max(up{job=\"pushgateway\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "", diff --git a/prometheus/files/grafana_dashboards/remote_storage_adapter_prometheus.json b/prometheus/files/grafana_dashboards/remote_storage_adapter_prometheus.json index 390784f..db9bfeb 100644 --- a/prometheus/files/grafana_dashboards/remote_storage_adapter_prometheus.json +++ b/prometheus/files/grafana_dashboards/remote_storage_adapter_prometheus.json @@ -69,7 +69,7 @@ "tableColumn": "", "targets": [ { - "expr": "min(up{job=\"remote_storage_adapter\"})", + "expr": "max(up{job=\"remote_storage_adapter\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "",