diff --git a/grafana/rootfs/usr/share/grafana/api/dashboards/influx.json b/grafana/rootfs/usr/share/grafana/api/dashboards/influx.json index 4b69752..a257b8b 100644 --- a/grafana/rootfs/usr/share/grafana/api/dashboards/influx.json +++ b/grafana/rootfs/usr/share/grafana/api/dashboards/influx.json @@ -4,47 +4,66 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], + "liveNow": false, "panels": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "influxdb-datasource", - "editable": true, - "error": false, + "datasource": null, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 12, @@ -52,43 +71,26 @@ "y": 0 }, "id": 2, - "interval": null, - "isNew": true, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.1", "targets": [ { + "datasource": null, "groupBy": [ { "params": [ @@ -125,90 +127,72 @@ "tags": [] } ], - "thresholds": "", "title": "Number of Measurements", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], "datasource": null, - "editable": true, - "error": false, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" }, "overrides": [] }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, "w": 12, "x": 12, "y": 0 }, - "id": 3, - "interval": null, - "isNew": true, + "id": 5, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "tableColumn": "", + "pluginVersion": "9.1.1", "targets": [ { - "alias": "", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -224,17 +208,17 @@ "type": "fill" } ], - "measurement": "influxdb_database", + "measurement": "influxdb_shard", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"influxdb_buckets_total\")\n |> filter(fn: (r) => r[\"_field\"] == \"counter\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", + "query": "import \"csv\"\n\ndummy_data = \"#group,false,false,false,false,true,true,true,true\n#datatype,string,long,dateTime:RFC3339,double,string,string,string,string\n#default,_result,,,,,,,\n,result,table,_time,_value,_field,_measurement,status,task_type\n,,0,2000-01-01T00:00:00.000000Z,0,counter,task_executor_total_runs_complete,success,system\"\n\ndefault = csv.from(csv: dummy_data)\n\nnew = from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"task_executor_total_runs_complete\")\n |> filter(fn: (r) => r.status == \"success\")\n |> filter(fn: (r) => r.task_type == \"system\")\n |> filter(fn: (r) => r._field == \"counter\")\n |> last()\n\nunion(tables: [default, new]) |> last()", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ - "numSeries" + "diskBytes" ], "type": "field" }, @@ -247,89 +231,59 @@ "tags": [] } ], - "thresholds": "", - "title": "Number of Buckets", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg" + "title": "Successful Task Runs", + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, + "fill": 1, + "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 3, + "h": 6, "w": 12, "x": 0, "y": 3 }, - "id": 4, - "interval": null, + "hiddenSeries": false, + "id": 7, + "interval": "", "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true + "options": { + "alertThreshold": true }, - "tableColumn": "", + "percentage": false, + "pluginVersion": "9.1.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -338,6 +292,12 @@ ], "type": "time" }, + { + "params": [ + "pod_name" + ], + "type": "tag" + }, { "params": [ "null" @@ -345,118 +305,97 @@ "type": "fill" } ], + "hide": false, "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"storage_shard_disk_size\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"storage_shard_disk_size\")\n |> keep(columns: [\"_time\", \"_value\", \"host\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "storage_shard_disk_size" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "container_name", - "operator": "=", - "value": "drycc-influxdb" - } - ] + "resultFormat": "time_series" } ], - "thresholds": "", - "title": "Shard disk size", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ + "thresholds": [], + "timeRegions": [], + "title": "Share Disk Size", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "op": "=", - "text": "N/A", - "value": "null" + "format": "short", + "label": "Millicores", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "current" + "yaxis": { + "align": false + } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, + "fill": 1, + "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 3, + "h": 6, "w": 12, "x": 12, "y": 3 }, - "id": 5, - "interval": null, + "hiddenSeries": false, + "id": 9, + "interval": "", "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true + "options": { + "alertThreshold": true }, - "tableColumn": "", + "percentage": false, + "pluginVersion": "9.1.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -465,6 +404,12 @@ ], "type": "time" }, + { + "params": [ + "pod_name" + ], + "type": "tag" + }, { "params": [ "null" @@ -472,41 +417,46 @@ "type": "fill" } ], - "measurement": "influxdb_shard", + "hide": false, + "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "import \"csv\"\n\ndummy_data = \"#group,false,false,false,false,true,true,true,true\n#datatype,string,long,dateTime:RFC3339,double,string,string,string,string\n#default,_result,,,,,,,\n,result,table,_time,_value,_field,_measurement,status,task_type\n,,0,2000-01-01T00:00:00.000000Z,0,counter,task_executor_total_runs_complete,success,system\"\n\ndefault = csv.from(csv: dummy_data)\n\nnew = from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"task_executor_total_runs_complete\")\n |> filter(fn: (r) => r.status == \"success\")\n |> filter(fn: (r) => r.task_type == \"system\")\n |> filter(fn: (r) => r._field == \"counter\")\n |> last()\n\nunion(tables: [default, new]) |> last()", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"influxdb_buckets_total\")\n |> filter(fn: (r) => r[\"_field\"] == \"counter\")\n |> keep(columns: [\"_time\", \"_value\", \"host\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "diskBytes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [] + "resultFormat": "time_series" } ], - "thresholds": "", - "title": "Successful Task Runs", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ + "thresholds": [], + "timeRegions": [], + "title": "Number of Buckets", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "op": "=", - "text": "N/A", - "value": "null" + "format": "short", + "label": "Millicores", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "current" + "yaxis": { + "align": false + } }, { "aliasColors": {}, @@ -516,12 +466,6 @@ "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -529,19 +473,17 @@ "h": 7, "w": 24, "x": 0, - "y": 6 + "y": 9 }, "hiddenSeries": false, - "id": 1, + "id": 11, "interval": "", "isNew": true, "legend": { - "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, - "rightSide": true, "show": false, "total": false, "values": false @@ -554,28 +496,18 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.4", + "pluginVersion": "9.1.1", "pointradius": 5, "points": false, "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Read/", - "color": "#508642", - "fill": 4 - }, - { - "alias": "/Write/", - "color": "#E0752D", - "fill": 4 - } - ], + "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "alias": "Read - $tag_host", + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -586,7 +518,7 @@ }, { "params": [ - "host" + "pod_name" ], "type": "tag" }, @@ -597,90 +529,17 @@ "type": "fill" } ], - "measurement": "influxdb_httpd", + "hide": false, + "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"boltdb_reads_total\")\n |> filter(fn: (r) => r[\"_field\"] == \"counter\")\n |> derivative(unit: 1s, nonNegative: true)\n |> group(columns: [\"host\"], mode:\"by\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> set(key: \"_field\", value: \"Read - \")\n \n", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"boltdb_reads_total\")\n |> derivative(unit: 1s, nonNegative: true)\n |> drop(columns: [\"url\", \"_field\", \"_measurement\"])", "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "queryReq" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - } - ] - ], - "tags": [] - }, - { - "alias": "Write - $tag_host", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$interval" - ], - "type": "time" - }, - { - "params": [ - "host" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "influxdb_httpd", - "orderByTime": "ASC", - "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"boltdb_writes_total\")\n |> filter(fn: (r) => r[\"_field\"] == \"counter\")\n |> derivative(unit: 1s, nonNegative: true)\n |> group(columns: [\"host\"], mode:\"by\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> set(key: \"_field\", value: \"Write - \")", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "writeReq" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "10s" - ], - "type": "non_negative_derivative" - } - ] - ], - "tags": [] + "resultFormat": "time_series" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Local Object Store IO", "tooltip": { "msResolution": false, @@ -690,35 +549,29 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { - "format": "none", + "format": "short", + "label": "Millicores", "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], - "schemaVersion": 26, + "schemaVersion": 37, "style": "dark", "tags": [ "drycc" @@ -759,7 +612,8 @@ "timezone": "browser", "title": "Influx", "uid": "nUSfrTTMk", - "version": 0 + "version": 0, + "weekStart": "" }, "overwrite": false } \ No newline at end of file diff --git a/grafana/rootfs/usr/share/grafana/api/dashboards/redis.json b/grafana/rootfs/usr/share/grafana/api/dashboards/redis.json index f77fa45..35b8eff 100644 --- a/grafana/rootfs/usr/share/grafana/api/dashboards/redis.json +++ b/grafana/rootfs/usr/share/grafana/api/dashboards/redis.json @@ -9,86 +9,73 @@ "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], + "liveNow": false, "panels": [ { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, + "fill": 1, + "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, + "h": 7, "w": 12, "x": 0, "y": 0 }, - "id": 6, - "interval": null, + "hiddenSeries": false, + "id": 8, + "interval": "", "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true + "options": { + "alertThreshold": true }, - "tableColumn": "", + "percentage": false, + "pluginVersion": "9.1.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -97,6 +84,12 @@ ], "type": "time" }, + { + "params": [ + "pod_name" + ], + "type": "tag" + }, { "params": [ "null" @@ -107,94 +100,91 @@ "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "import \"math\"\nfrom(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"kubernetes_pod_container\")\n |> filter(fn: (r) => r[\"_field\"] == \"cpu_usage_nanocores\")\n |> filter(fn: (r) => r[\"container_name\"] == \"drycc-redis\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> last()\n |> map(fn: (r) => ({\n r with\n _value: r._value / 1000000.0\n })\n )\n |> yield(name: \"mean\")", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_field\"] == \"cpu_usage_nanocores\")\n |> filter(fn: (r) => r[\"namespace\"] == \"drycc\")\n |> filter(fn: (r) => r[\"container_name\"] == \"drycc-redis\")\n |> keep(columns: [\"_time\", \"node_name\", \"pod_name\", \"container_name\", \"_value\"])\n |> movingAverage(n: 10)\n |> map(fn: (r) => ({\n r with\n _value: r._value / 1000000.0\n })\n )\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "refId": "A", "resultFormat": "time_series" } ], - "thresholds": "", + "thresholds": [], + "timeRegions": [], "title": "CPU Usage (Millicores)", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "op": "=", - "text": "N/A", - "value": "null" + "format": "short", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "avg" + "yaxis": { + "align": false + } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "format": "bytes", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, + "fill": 1, + "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, + "h": 7, "w": 12, "x": 12, "y": 0 }, - "id": 5, - "interval": null, + "hiddenSeries": false, + "id": 10, "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "alertThreshold": true }, - "tableColumn": "", + "percentage": false, + "pluginVersion": "9.1.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -203,6 +193,12 @@ ], "type": "time" }, + { + "params": [ + "pod_name" + ], + "type": "tag" + }, { "params": [ "null" @@ -213,94 +209,92 @@ "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"redis\")\n |> filter(fn: (r) => r._field == \"used_memory_rss\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"container_name\"] == \"drycc-redis\")\n |> filter(fn: (r) => r[\"_field\"] == \"memory_usage_bytes\")\n |> keep(columns: [\"_time\", \"node_name\", \"pod_name\", \"container_name\", \"_value\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "refId": "A", "resultFormat": "time_series" } ], - "thresholds": "", + "thresholds": [], + "timeRegions": [], "title": "Memory", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "show": true + }, { - "op": "=", - "text": "N/A", - "value": "null" + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "current" + "yaxis": { + "align": false + } }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, + "fill": 1, + "fillGradient": 0, + "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 6 + "y": 7 }, - "id": 2, - "interval": null, + "hiddenSeries": false, + "id": 12, + "interval": "", "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "alertThreshold": true }, - "tableColumn": "", + "percentage": false, + "pluginVersion": "9.1.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { + "alias": "$tag_pod_name", + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -309,6 +303,12 @@ ], "type": "time" }, + { + "params": [ + "pod_name" + ], + "type": "tag" + }, { "params": [ "null" @@ -316,26 +316,44 @@ "type": "fill" } ], - "measurement": "redis", + "measurement": "kubernetes_pod_container", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"redis\")\n |> filter(fn: (r) => r[\"_field\"] == \"clients\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"redis\")\n |> filter(fn: (r) => r[\"_field\"] == \"clients\")\n |> keep(columns: [\"_time\", \"host\", \"server\", \"_value\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", "refId": "A", "resultFormat": "time_series" } ], - "thresholds": "", + "thresholds": [], + "timeRegions": [], "title": "Connected Clients", - "type": "singlestat", - "valueFontSize": "200%", - "valueMaps": [ + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "op": "=", - "text": "N/A", - "value": "null" + "format": "short", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true } ], - "valueName": "avg" + "yaxis": { + "align": false + } }, { "aliasColors": {}, @@ -345,12 +363,6 @@ "datasource": null, "editable": true, "error": false, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -358,7 +370,7 @@ "h": 7, "w": 12, "x": 12, - "y": 6 + "y": 7 }, "hiddenSeries": false, "id": 4, @@ -381,7 +393,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.3.4", + "pluginVersion": "9.1.1", "pointradius": 5, "points": false, "renderer": "flot", @@ -391,6 +403,7 @@ "steppedLine": false, "targets": [ { + "datasource": null, "dsType": "influxdb", "groupBy": [ { @@ -409,15 +422,13 @@ "measurement": "redis", "orderByTime": "ASC", "policy": "default", - "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"redis\")\n |> filter(fn: (r) => r[\"_field\"] == \"instantaneous_ops_per_sec\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")\n", + "query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"redis\")\n |> filter(fn: (r) => r[\"_field\"] == \"instantaneous_ops_per_sec\")\n |> keep(columns: [\"_time\", \"host\", \"server\", \"_value\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")\n", "refId": "A", "resultFormat": "time_series" } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Ops Per Second", "tooltip": { "msResolution": true, @@ -427,38 +438,29 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ops", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], "refresh": "5s", - "schemaVersion": 26, + "schemaVersion": 37, "style": "dark", "tags": [ "drycc" @@ -498,7 +500,8 @@ "timezone": "browser", "title": "Redis", "uid": "FlIfrooGz", - "version": 0 + "version": 0, + "weekStart": "" }, "overwrite": false } \ No newline at end of file