diff --git a/docker/grafana/dashboards/kepler-exporter.json b/docker/grafana/dashboards/kepler-exporter.json index 154ae75..f104952 100644 --- a/docker/grafana/dashboards/kepler-exporter.json +++ b/docker/grafana/dashboards/kepler-exporter.json @@ -174,7 +174,9 @@ ], "displayMode": "table", "placement": "right", - "showLegend": true + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, "tooltip": { "mode": "multi", @@ -360,8 +362,8 @@ "overrides": [] }, "gridPos": { - "h": 9, - "w": 12, + "h": 11, + "w": 19, "x": 0, "y": 9 }, @@ -448,12 +450,12 @@ "custom": { "axisCenteredZero": false, "axisColorMode": "text", - "axisLabel": "watt", + "axisLabel": "kWh", "axisPlacement": "left", "barAlignment": 0, - "drawStyle": "line", + "drawStyle": "bars", "fillOpacity": 44, - "gradientMode": "none", + "gradientMode": "opacity", "hideFrom": { "graph": false, "legend": false, @@ -461,9 +463,6 @@ "viz": false }, "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, "lineWidth": 0, "pointSize": 5, "scaleDistribution": { @@ -494,51 +493,117 @@ ] } }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": ".*PKG.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": ".*DRAM.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": ".*OtherComponents.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": ".*GPU.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "semi-dark-green", + "mode": "fixed" + } + } + ] + } + ] }, "gridPos": { - "h": 9, - "w": 12, - "x": 12, + "h": 11, + "w": 5, + "x": 19, "y": 9 }, - "id": 20, + "id": 17, "options": { "legend": { "calcs": [ "mean", - "min", "max" ], "displayMode": "table", - "placement": "right", + "placement": "bottom", "showLegend": true, - "sortBy": "Mean", + "sortBy": "Max", "sortDesc": true }, "tooltip": { - "mode": "multi", - "sort": "desc" + "mode": "single", + "sort": "none" } }, "targets": [ { - "datasource": "prometheus", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, "editorMode": "code", - "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_package_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", + "expr": "sum (\n increase(\n (kepler_container_package_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", "hide": false, "interval": "", - "legendFormat": "{{pod_name}} / {{container_namespace}} / PKG", + "legendFormat": "PKG (CORE+UNCORE)", "range": true, "refId": "A" }, { - "datasource": "prometheus", - "editorMode": "builder", - "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_dram_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum (\n increase(\n (kepler_container_dram_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", "hide": false, "interval": "", - "legendFormat": "{{pod_name}} / {{container_namespace}} / DRAM", + "legendFormat": "DRAM", "range": true, "refId": "B" }, @@ -547,11 +612,10 @@ "type": "prometheus", "uid": "${datasource}" }, - "editorMode": "builder", - "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_other_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", + "editorMode": "code", + "expr": "sum (\n increase(\n (kepler_container_other_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", "hide": false, - "interval": "", - "legendFormat": "{{pod_name}} / {{container_namespace}} / OTHER", + "legendFormat": "OTHER", "range": true, "refId": "C" }, @@ -560,15 +624,15 @@ "type": "prometheus", "uid": "${datasource}" }, - "editorMode": "builder", - "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_gpu_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", + "editorMode": "code", + "expr": "sum (\n increase(\n (kepler_container_gpu_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", "hide": false, - "legendFormat": "{{pod_name}} / {{container_namespace}} / GPU", + "legendFormat": " GPU", "range": true, "refId": "D" } ], - "title": "Stacked: Pod/Process Power Consumption (W) in Namespace: $namespace", + "title": "Total Power Consumption (kWh per day) in Namespace: $namespace", "type": "timeseries" }, { @@ -585,12 +649,12 @@ "custom": { "axisCenteredZero": false, "axisColorMode": "text", - "axisLabel": "kWh", + "axisLabel": "watt", "axisPlacement": "left", "barAlignment": 0, - "drawStyle": "bars", + "drawStyle": "line", "fillOpacity": 44, - "gradientMode": "opacity", + "gradientMode": "none", "hideFrom": { "graph": false, "legend": false, @@ -598,6 +662,9 @@ "viz": false }, "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, "lineWidth": 0, "pointSize": 5, "scaleDistribution": { @@ -628,117 +695,51 @@ ] } }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": ".*PKG.*" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "red", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": ".*DRAM.*" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "orange", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": ".*OtherComponents.*" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byRegexp", - "options": ".*GPU.*" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "semi-dark-green", - "mode": "fixed" - } - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 11, - "w": 12, + "w": 19, "x": 0, - "y": 18 + "y": 20 }, - "id": 17, + "id": 20, "options": { "legend": { "calcs": [ "mean", + "min", "max" ], "displayMode": "table", - "placement": "bottom", + "placement": "right", "showLegend": true, - "sortBy": "Max", + "sortBy": "Mean", "sortDesc": true }, "tooltip": { - "mode": "single", - "sort": "none" + "mode": "multi", + "sort": "desc" } }, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, + "datasource": "prometheus", "editorMode": "code", - "expr": "sum (\n increase(\n (kepler_container_package_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", + "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_package_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", "hide": false, "interval": "", - "legendFormat": "PKG (CORE+UNCORE)", + "legendFormat": "{{pod_name}} / {{container_namespace}} / PKG", "range": true, "refId": "A" }, { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "sum (\n increase(\n (kepler_container_dram_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", + "datasource": "prometheus", + "editorMode": "builder", + "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_dram_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", "hide": false, "interval": "", - "legendFormat": "DRAM", + "legendFormat": "{{pod_name}} / {{container_namespace}} / DRAM", "range": true, "refId": "B" }, @@ -747,10 +748,11 @@ "type": "prometheus", "uid": "${datasource}" }, - "editorMode": "code", - "expr": "sum (\n increase(\n (kepler_container_other_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", + "editorMode": "builder", + "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_other_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", "hide": false, - "legendFormat": "OTHER", + "interval": "", + "legendFormat": "{{pod_name}} / {{container_namespace}} / OTHER", "range": true, "refId": "C" }, @@ -759,15 +761,15 @@ "type": "prometheus", "uid": "${datasource}" }, - "editorMode": "code", - "expr": "sum (\n increase(\n (kepler_container_gpu_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[24h:1m])\n )\n) * $watt_per_second_to_kWh", + "editorMode": "builder", + "expr": "sum by(pod_name, container_namespace) (rate(kepler_container_gpu_joules_total{container_namespace=~\"$namespace\", pod_name=~\"$pod\"}[$__rate_interval]))", "hide": false, - "legendFormat": " GPU", + "legendFormat": "{{pod_name}} / {{container_namespace}} / GPU", "range": true, "refId": "D" } ], - "title": "Total Power Consumption (kWh per day) in Namespace: $namespace", + "title": "Stacked: Pod/Process Power Consumption (W) in Namespace: $namespace", "type": "timeseries" }, { @@ -892,9 +894,9 @@ }, "gridPos": { "h": 11, - "w": 12, - "x": 12, - "y": 18 + "w": 5, + "x": 19, + "y": 20 }, "id": 2, "options": { @@ -905,7 +907,9 @@ ], "displayMode": "table", "placement": "bottom", - "showLegend": true + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, "tooltip": { "mode": "single",