diff --git a/deploy/heapster-controller.yaml b/deploy/heapster-controller.yaml index 27e6971dfa..33574d9d48 100644 --- a/deploy/heapster-controller.yaml +++ b/deploy/heapster-controller.yaml @@ -13,7 +13,7 @@ desiredState: containers: - name: "heapster" - image: "kubernetes/heapster:v0.6" + image: "kubernetes/heapster:v0.5" env: - name: "INFLUXDB_HOST" diff --git a/influx-grafana/grafana/kubernetes-dashboard.json b/influx-grafana/grafana/kubernetes-dashboard.json index 147161d0a6..a31a8ae6ca 100644 --- a/influx-grafana/grafana/kubernetes-dashboard.json +++ b/influx-grafana/grafana/kubernetes-dashboard.json @@ -7,6 +7,7 @@ "timezone": "browser", "editable": true, "hideControls": false, + "sharedCrosshair": false, "rows": [ { "title": "test", @@ -66,7 +67,8 @@ "steppedLine": false, "tooltip": { "value_type": "cumulative", - "query_as_alias": true + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -86,14 +88,15 @@ } ], "aliasColors": {}, - "title": "All 'containers' CPU usage", + "title": "All 'containers' CPU usage - Stacked", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 1, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [] }, { "span": 6, @@ -145,8 +148,9 @@ "nullPointMode": "connected", "steppedLine": false, "tooltip": { - "value_type": "individual", - "query_as_alias": true + "value_type": "cumulative", + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -166,14 +170,15 @@ } ], "aliasColors": {}, - "title": "All 'containers' Memory usage", + "title": "All 'containers' Memory usage - Stacked", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 2, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [] } ], "notice": false @@ -194,7 +199,7 @@ "scale": 1, "y_formats": [ "ns", - "bytes" + "ns" ], "grid": { "max": null, @@ -236,7 +241,8 @@ "steppedLine": false, "tooltip": { "value_type": "cumulative", - "query_as_alias": true + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -244,26 +250,28 @@ "function": "derivative", "column": "cpu_cumulative_usage", "series": "stats", - "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter group by time($interval), container_name order asc", + "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter and labels =~ /name:heapster/ group by time($interval), container_name order asc", "condition_filter": true, - "condition_key": "pod", - "condition_op": "=", - "condition_value": "'heapster'", - "interval": "2s", + "interval": "5s", "groupby_field_add": true, "groupby_field": "container_name", - "alias": "" + "alias": "", + "condition": "labels =~ /name:heapster/", + "rawQuery": false, + "fill": "" } ], "aliasColors": {}, - "title": "Pod 'heapster' CPU usage", + "title": "Label 'name:heapster' CPU usage", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 3, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [], + "interval": "" }, { "span": 6, @@ -310,13 +318,14 @@ "interactive": true, "legend_counts": true, "timezone": "browser", - "percentage": true, + "percentage": false, "zerofill": true, "nullPointMode": "connected", "steppedLine": false, "tooltip": { - "value_type": "cumulative", - "query_as_alias": true + "value_type": "individual", + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -324,41 +333,39 @@ "function": "mean", "column": "memory_usage", "series": "stats", - "query": "select container_name, mean(memory_usage) from \"stats\" where $timeFilter group by time($interval), container_name order asc", + "query": "select mean(memory_usage) from \"stats\" where $timeFilter and labels =~ /name:heapster/ group by time($interval) order asc", "condition_filter": true, - "condition_key": "pod", - "condition_op": "=", - "condition_value": "'heapster'", "interval": "2s", "groupby_field_add": true, - "groupby_field": "container_name", - "alias": "total" + "groupby_field": "", + "alias": "total", + "condition": "labels =~ /name:heapster/" }, { "target": "randomWalk('random walk2')", "function": "mean", "column": "memory_working_set", "series": "stats", - "query": "select container_name, mean(memory_working_set) from \"stats\" where $timeFilter group by time($interval), container_name order asc", + "query": "select mean(memory_working_set) from \"stats\" where $timeFilter and labels =~ /name:heapster/ group by time($interval) order asc", "condition_filter": true, - "condition_key": "pod", - "condition_op": "=", - "condition_value": "'heapster'", "interval": "2s", "groupby_field_add": true, - "groupby_field": "container_name", - "alias": "hot" + "groupby_field": "", + "alias": "hot", + "condition": "labels =~ /name:heapster/" } ], "aliasColors": {}, - "title": "Pod 'heapster' memory usage", + "title": "Labels 'name:heapster' memory usage", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 4, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [], + "interval": "2s" } ], "notice": false @@ -420,8 +427,9 @@ "nullPointMode": "connected", "steppedLine": false, "tooltip": { - "value_type": "individual", - "query_as_alias": true + "value_type": "cumulative", + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -429,26 +437,26 @@ "function": "derivative", "column": "cpu_cumulative_usage", "series": "stats", - "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter group by time($interval), container_name order asc", + "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter and labels =~ /name:influxGrafana/ group by time($interval), container_name order asc", "condition_filter": true, - "condition_key": "labels", - "condition_op": "=", - "condition_value": "'name:influxGrafana'", "interval": "2s", "groupby_field_add": true, "groupby_field": "container_name", - "alias": "" + "alias": "", + "condition": "labels =~ /name:influxGrafana/" } ], "aliasColors": {}, - "title": "Labels 'influx-grafana' CPU usage", + "title": "Labels 'name:influx-grafana' CPU usage", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 5, - "seriesOverrides": [] + "seriesOverrides": [], + "interval": "", + "links": [] }, { "span": 6, @@ -500,8 +508,9 @@ "nullPointMode": "connected", "steppedLine": false, "tooltip": { - "value_type": "individual", - "query_as_alias": true + "value_type": "cumulative", + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -532,14 +541,15 @@ } ], "aliasColors": {}, - "title": "Labels 'influx-grafana' memory usage", + "title": "Labels 'name:influx-grafana' memory usage", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 6, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [] } ], "notice": false @@ -603,7 +613,8 @@ "steppedLine": false, "tooltip": { "value_type": "individual", - "query_as_alias": true + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -622,7 +633,7 @@ } ], "aliasColors": {}, - "title": "Cluster CPU usage - stacked", + "title": "Cluster CPU usage - Stacked", "datasource": null, "renderer": "png", "annotate": { @@ -630,7 +641,8 @@ }, "id": 7, "seriesOverrides": [], - "interval": "2s" + "interval": "2s", + "links": [] }, { "span": 6, @@ -685,7 +697,8 @@ "steppedLine": false, "tooltip": { "value_type": "individual", - "query_as_alias": true + "query_as_alias": true, + "shared": false }, "targets": [ { @@ -704,14 +717,15 @@ } ], "aliasColors": {}, - "title": "Cluster memory usage - stacked", + "title": "Cluster memory usage - Stacked", "datasource": null, "renderer": "png", "annotate": { "enable": false }, "id": 8, - "seriesOverrides": [] + "seriesOverrides": [], + "links": [] } ], "notice": false @@ -759,8 +773,10 @@ "enable": false }, "annotations": { - "enable": false + "enable": false, + "list": [] }, "refresh": false, - "version": 6 -} \ No newline at end of file + "version": 6, + "hideAllLegends": false +} diff --git a/influx-grafana/grafana/run.sh b/influx-grafana/grafana/run.sh index 05f083dfc9..986ef66be4 100644 --- a/influx-grafana/grafana/run.sh +++ b/influx-grafana/grafana/run.sh @@ -20,6 +20,6 @@ if [ ! -f /.dashboard_configured ]; then /set_dashboard.sh fi -echo "=> Grafana for heapster version: 0.2!" +echo "=> Grafana for heapster version: v0.3!" echo "=> Starting and running Nginx..." /usr/sbin/nginx