From 2a3f03c49153b9e16912d3f9967ab5f4c77bab9c Mon Sep 17 00:00:00 2001 From: Vasilis Remmas Date: Thu, 2 Aug 2018 18:07:25 +0200 Subject: [PATCH 1/3] Change grafana to point prometheus datasource --- deploy/grafana/dashboards/nginx.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/deploy/grafana/dashboards/nginx.yaml b/deploy/grafana/dashboards/nginx.yaml index b399dff576..07f40f64e2 100644 --- a/deploy/grafana/dashboards/nginx.yaml +++ b/deploy/grafana/dashboards/nginx.yaml @@ -72,7 +72,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": null, + "datasource": "prometheus", "format": "ops", "gauge": { "maxValue": 100, @@ -154,7 +154,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": null, + "datasource": "prometheus", "format": "none", "gauge": { "maxValue": 100, @@ -237,7 +237,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": null, + "datasource": "prometheus", "format": "percentunit", "gauge": { "maxValue": 100, @@ -319,7 +319,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": null, + "datasource": "prometheus", "decimals": 0, "format": "none", "gauge": { @@ -403,7 +403,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": null, + "datasource": "prometheus", "decimals": 0, "format": "none", "gauge": { @@ -483,7 +483,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "prometheus", "decimals": 2, "editable": true, "error": false, @@ -599,7 +599,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "prometheus", "decimals": 2, "editable": false, "error": false, @@ -701,7 +701,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": null, + "datasource": "prometheus", "decimals": 3, "editable": false, "error": false, @@ -804,7 +804,7 @@ }, { "columns": [], - "datasource": null, + "datasource": "prometheus", "fontSize": "100%", "gridPos": { "h": 8, @@ -1029,7 +1029,7 @@ "value": "current" } ], - "datasource": null, + "datasource": "prometheus", "fontSize": "100%", "gridPos": { "h": 8, From d1a38c23cf345d550da3529d976f608cd8513755 Mon Sep 17 00:00:00 2001 From: Vasilis Remmas Date: Thu, 2 Aug 2018 18:07:34 +0200 Subject: [PATCH 2/3] Fixed grafana datasource --- deploy/grafana/dashboards/nginx.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/grafana/dashboards/nginx.yaml b/deploy/grafana/dashboards/nginx.yaml index 07f40f64e2..e308cbf43d 100644 --- a/deploy/grafana/dashboards/nginx.yaml +++ b/deploy/grafana/dashboards/nginx.yaml @@ -41,7 +41,7 @@ "type": "dashboard" }, { - "datasource": "Prometheus", + "datasource": "prometheus", "enable": true, "expr": "sum(changes(nginx_ingress_controller_config_last_reload_successful_timestamp_seconds{instance!=\"unknown\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[30s])) by (controller_class)", "hide": false, @@ -1117,7 +1117,7 @@ "text": "All", "value": "$__all" }, - "datasource": "Prometheus", + "datasource": "prometheus", "hide": 0, "includeAll": true, "label": "Namespace", @@ -1140,7 +1140,7 @@ "text": "All", "value": "$__all" }, - "datasource": "Prometheus", + "datasource": "prometheus", "hide": 0, "includeAll": true, "label": "Controller Class", @@ -1163,7 +1163,7 @@ "text": "All", "value": "$__all" }, - "datasource": "Prometheus", + "datasource": "prometheus", "hide": 0, "includeAll": true, "label": "Controller", From c3d9aa8dcbb96f570c88fa53942d79045d04177b Mon Sep 17 00:00:00 2001 From: Vasilis Remmas Date: Fri, 3 Aug 2018 10:02:15 +0200 Subject: [PATCH 3/3] Added requirements in README.md --- deploy/grafana/dashboards/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/grafana/dashboards/README.md b/deploy/grafana/dashboards/README.md index a4b9fb277e..92da6c6c03 100644 --- a/deploy/grafana/dashboards/README.md +++ b/deploy/grafana/dashboards/README.md @@ -12,4 +12,8 @@ This folder contains a dashboard that you can import: - Network IO pressure, memory and CPU use - Ingress P50, P95 and P99 percentile response times with IN/OUT throughput - SSL certificate expiry - - Annotational overlays to show when config reloads happened \ No newline at end of file + - Annotational overlays to show when config reloads happened + +## Requirements + + - **Grafana v5.2.0** (or newer)