mirror of https://git.rancher.io/charts
853 lines
40 KiB
Diff
853 lines
40 KiB
Diff
--- charts-original/templates/grafana/dashboards-1.14/k8s-resources-namespace.yaml
|
|
+++ charts/templates/grafana/dashboards-1.14/k8s-resources-namespace.yaml
|
|
@@ -4,11 +4,11 @@
|
|
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack
|
|
*/ -}}
|
|
{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
|
|
-{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }}
|
|
+{{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
- namespace: {{ template "kube-prometheus-stack.namespace" . }}
|
|
+ namespace: {{ .Values.grafana.defaultDashboards.namespace }}
|
|
name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "k8s-resources-namespace" | trunc 63 | trimSuffix "-" }}
|
|
annotations:
|
|
{{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
|
|
@@ -78,7 +78,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"})",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -162,7 +162,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"})",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -246,7 +246,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"})",
|
|
+ "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -256,7 +256,7 @@
|
|
"thresholds": "70,80",
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
- "title": "Memory Utilization (from requests)",
|
|
+ "title": "Memory Utilisation (from requests)",
|
|
"tooltip": {
|
|
"shared": false,
|
|
"sort": 0,
|
|
@@ -330,7 +330,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"})",
|
|
+ "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -422,8 +422,9 @@
|
|
"color": "#F2495C",
|
|
"dashes": true,
|
|
"fill": 0,
|
|
+ "hiddenSeries": true,
|
|
"hideTooltip": true,
|
|
- "legend": false,
|
|
+ "legend": true,
|
|
"linewidth": 2,
|
|
"stack": false
|
|
},
|
|
@@ -432,8 +433,9 @@
|
|
"color": "#FF9830",
|
|
"dashes": true,
|
|
"fill": 0,
|
|
+ "hiddenSeries": true,
|
|
"hideTooltip": true,
|
|
- "legend": false,
|
|
+ "legend": true,
|
|
"linewidth": 2,
|
|
"stack": false
|
|
}
|
|
@@ -704,7 +706,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -713,7 +715,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -722,7 +724,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -731,7 +733,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -828,8 +830,9 @@
|
|
"color": "#F2495C",
|
|
"dashes": true,
|
|
"fill": 0,
|
|
+ "hiddenSeries": true,
|
|
"hideTooltip": true,
|
|
- "legend": false,
|
|
+ "legend": true,
|
|
"linewidth": 2,
|
|
"stack": false
|
|
},
|
|
@@ -838,8 +841,9 @@
|
|
"color": "#FF9830",
|
|
"dashes": true,
|
|
"fill": 0,
|
|
+ "hiddenSeries": true,
|
|
"hideTooltip": true,
|
|
- "legend": false,
|
|
+ "legend": true,
|
|
"linewidth": 2,
|
|
"stack": false
|
|
}
|
|
@@ -1167,7 +1171,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1176,7 +1180,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1185,7 +1189,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1194,7 +1198,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"}) by (pod)",
|
|
+ "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\",container!=\"\", image!=\"\"}) by (pod) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\"}) by (pod)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1578,7 +1582,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Current Network Usage",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -1618,7 +1622,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1670,19 +1674,7 @@
|
|
"show": false
|
|
}
|
|
]
|
|
- }
|
|
- ],
|
|
- "repeat": null,
|
|
- "repeatIteration": null,
|
|
- "repeatRowId": null,
|
|
- "showTitle": true,
|
|
- "title": "Network",
|
|
- "titleSize": "h6"
|
|
- },
|
|
- {
|
|
- "collapse": false,
|
|
- "height": "250px",
|
|
- "panels": [
|
|
+ },
|
|
{
|
|
"aliasColors": {
|
|
|
|
@@ -1716,7 +1708,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1774,7 +1766,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Bandwidth",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -1814,7 +1806,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1866,19 +1858,7 @@
|
|
"show": false
|
|
}
|
|
]
|
|
- }
|
|
- ],
|
|
- "repeat": null,
|
|
- "repeatIteration": null,
|
|
- "repeatRowId": null,
|
|
- "showTitle": true,
|
|
- "title": "Network",
|
|
- "titleSize": "h6"
|
|
- },
|
|
- {
|
|
- "collapse": false,
|
|
- "height": "250px",
|
|
- "panels": [
|
|
+ },
|
|
{
|
|
"aliasColors": {
|
|
|
|
@@ -1912,7 +1892,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1970,7 +1950,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Rate of Packets",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -2010,7 +1990,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -2062,13 +2042,99 @@
|
|
"show": false
|
|
}
|
|
]
|
|
+ },
|
|
+ {
|
|
+ "aliasColors": {
|
|
+
|
|
+ },
|
|
+ "bars": false,
|
|
+ "dashLength": 10,
|
|
+ "dashes": false,
|
|
+ "datasource": "$datasource",
|
|
+ "fill": 10,
|
|
+ "id": 15,
|
|
+ "legend": {
|
|
+ "avg": false,
|
|
+ "current": false,
|
|
+ "max": false,
|
|
+ "min": false,
|
|
+ "show": true,
|
|
+ "total": false,
|
|
+ "values": false
|
|
+ },
|
|
+ "lines": true,
|
|
+ "linewidth": 0,
|
|
+ "links": [
|
|
+
|
|
+ ],
|
|
+ "nullPointMode": "null as zero",
|
|
+ "percentage": false,
|
|
+ "pointradius": 5,
|
|
+ "points": false,
|
|
+ "renderer": "flot",
|
|
+ "seriesOverrides": [
|
|
+
|
|
+ ],
|
|
+ "spaceLength": 10,
|
|
+ "span": 6,
|
|
+ "stack": true,
|
|
+ "steppedLine": false,
|
|
+ "targets": [
|
|
+ {
|
|
+ "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__rate_interval])) by (pod)",
|
|
+ "format": "time_series",
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "{{`{{`}}pod{{`}}`}}",
|
|
+ "legendLink": null,
|
|
+ "step": 10
|
|
+ }
|
|
+ ],
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "timeFrom": null,
|
|
+ "timeShift": null,
|
|
+ "title": "Rate of Transmitted Packets Dropped",
|
|
+ "tooltip": {
|
|
+ "shared": false,
|
|
+ "sort": 0,
|
|
+ "value_type": "individual"
|
|
+ },
|
|
+ "type": "graph",
|
|
+ "xaxis": {
|
|
+ "buckets": null,
|
|
+ "mode": "time",
|
|
+ "name": null,
|
|
+ "show": true,
|
|
+ "values": [
|
|
+
|
|
+ ]
|
|
+ },
|
|
+ "yaxes": [
|
|
+ {
|
|
+ "format": "Bps",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": 0,
|
|
+ "show": true
|
|
+ },
|
|
+ {
|
|
+ "format": "short",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": null,
|
|
+ "show": false
|
|
+ }
|
|
+ ]
|
|
}
|
|
],
|
|
"repeat": null,
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Rate of Packets Dropped",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -2083,8 +2149,9 @@
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "$datasource",
|
|
+ "decimals": -1,
|
|
"fill": 10,
|
|
- "id": 15,
|
|
+ "id": 16,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
@@ -2108,12 +2175,12 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\"$namespace\"}[$__rate_interval])) by (pod)",
|
|
+ "expr": "ceil(sum by(pod) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]) + rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m])))",
|
|
"format": "time_series",
|
|
"intervalFactor": 2,
|
|
"legendFormat": "{{`{{`}}pod{{`}}`}}",
|
|
@@ -2126,7 +2193,93 @@
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
- "title": "Rate of Transmitted Packets Dropped",
|
|
+ "title": "IOPS(Reads+Writes)",
|
|
+ "tooltip": {
|
|
+ "shared": false,
|
|
+ "sort": 0,
|
|
+ "value_type": "individual"
|
|
+ },
|
|
+ "type": "graph",
|
|
+ "xaxis": {
|
|
+ "buckets": null,
|
|
+ "mode": "time",
|
|
+ "name": null,
|
|
+ "show": true,
|
|
+ "values": [
|
|
+
|
|
+ ]
|
|
+ },
|
|
+ "yaxes": [
|
|
+ {
|
|
+ "format": "short",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": 0,
|
|
+ "show": true
|
|
+ },
|
|
+ {
|
|
+ "format": "short",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": null,
|
|
+ "show": false
|
|
+ }
|
|
+ ]
|
|
+ },
|
|
+ {
|
|
+ "aliasColors": {
|
|
+
|
|
+ },
|
|
+ "bars": false,
|
|
+ "dashLength": 10,
|
|
+ "dashes": false,
|
|
+ "datasource": "$datasource",
|
|
+ "fill": 10,
|
|
+ "id": 17,
|
|
+ "legend": {
|
|
+ "avg": false,
|
|
+ "current": false,
|
|
+ "max": false,
|
|
+ "min": false,
|
|
+ "show": true,
|
|
+ "total": false,
|
|
+ "values": false
|
|
+ },
|
|
+ "lines": true,
|
|
+ "linewidth": 0,
|
|
+ "links": [
|
|
+
|
|
+ ],
|
|
+ "nullPointMode": "null as zero",
|
|
+ "percentage": false,
|
|
+ "pointradius": 5,
|
|
+ "points": false,
|
|
+ "renderer": "flot",
|
|
+ "seriesOverrides": [
|
|
+
|
|
+ ],
|
|
+ "spaceLength": 10,
|
|
+ "span": 6,
|
|
+ "stack": true,
|
|
+ "steppedLine": false,
|
|
+ "targets": [
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]) + rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "time_series",
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "{{`{{`}}pod{{`}}`}}",
|
|
+ "legendLink": null,
|
|
+ "step": 10
|
|
+ }
|
|
+ ],
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "timeFrom": null,
|
|
+ "timeShift": null,
|
|
+ "title": "ThroughPut(Read+Write)",
|
|
"tooltip": {
|
|
"shared": false,
|
|
"sort": 0,
|
|
@@ -2166,7 +2319,312 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Storage IO",
|
|
+ "titleSize": "h6"
|
|
+ },
|
|
+ {
|
|
+ "collapse": false,
|
|
+ "height": "250px",
|
|
+ "panels": [
|
|
+ {
|
|
+ "aliasColors": {
|
|
+
|
|
+ },
|
|
+ "bars": false,
|
|
+ "dashLength": 10,
|
|
+ "dashes": false,
|
|
+ "datasource": "$datasource",
|
|
+ "fill": 1,
|
|
+ "id": 18,
|
|
+ "legend": {
|
|
+ "avg": false,
|
|
+ "current": false,
|
|
+ "max": false,
|
|
+ "min": false,
|
|
+ "show": true,
|
|
+ "total": false,
|
|
+ "values": false
|
|
+ },
|
|
+ "lines": true,
|
|
+ "linewidth": 1,
|
|
+ "links": [
|
|
+
|
|
+ ],
|
|
+ "nullPointMode": "null as zero",
|
|
+ "percentage": false,
|
|
+ "pointradius": 5,
|
|
+ "points": false,
|
|
+ "renderer": "flot",
|
|
+ "seriesOverrides": [
|
|
+
|
|
+ ],
|
|
+ "sort": {
|
|
+ "col": 4,
|
|
+ "desc": true
|
|
+ },
|
|
+ "spaceLength": 10,
|
|
+ "span": 12,
|
|
+ "stack": false,
|
|
+ "steppedLine": false,
|
|
+ "styles": [
|
|
+ {
|
|
+ "alias": "Time",
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "pattern": "Time",
|
|
+ "type": "hidden"
|
|
+ },
|
|
+ {
|
|
+ "alias": "IOPS(Reads)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": -1,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #A",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "short"
|
|
+ },
|
|
+ {
|
|
+ "alias": "IOPS(Writes)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": -1,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #B",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "short"
|
|
+ },
|
|
+ {
|
|
+ "alias": "IOPS(Reads + Writes)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": -1,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #C",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "short"
|
|
+ },
|
|
+ {
|
|
+ "alias": "Throughput(Read)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #D",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "Bps"
|
|
+ },
|
|
+ {
|
|
+ "alias": "Throughput(Write)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #E",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "Bps"
|
|
+ },
|
|
+ {
|
|
+ "alias": "Throughput(Read + Write)",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "link": false,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down",
|
|
+ "linkUrl": "",
|
|
+ "pattern": "Value #F",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "Bps"
|
|
+ },
|
|
+ {
|
|
+ "alias": "Pod",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "link": true,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down to pods",
|
|
+ "linkUrl": "./d/6581e46e4e5c7ba40a07646395ef7b23/k8s-resources-pod?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-pod=$__cell",
|
|
+ "pattern": "pod",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "number",
|
|
+ "unit": "short"
|
|
+ },
|
|
+ {
|
|
+ "alias": "",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "pattern": "/.*/",
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "type": "string",
|
|
+ "unit": "short"
|
|
+ }
|
|
+ ],
|
|
+ "targets": [
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "A",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "B",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]) + rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "C",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "D",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "E",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(pod) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]) + rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\",namespace=~\"$namespace\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "F",
|
|
+ "step": 10
|
|
+ }
|
|
+ ],
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "timeFrom": null,
|
|
+ "timeShift": null,
|
|
+ "title": "Current Storage IO",
|
|
+ "tooltip": {
|
|
+ "shared": false,
|
|
+ "sort": 0,
|
|
+ "value_type": "individual"
|
|
+ },
|
|
+ "transform": "table",
|
|
+ "type": "table",
|
|
+ "xaxis": {
|
|
+ "buckets": null,
|
|
+ "mode": "time",
|
|
+ "name": null,
|
|
+ "show": true,
|
|
+ "values": [
|
|
+
|
|
+ ]
|
|
+ },
|
|
+ "yaxes": [
|
|
+ {
|
|
+ "format": "short",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": 0,
|
|
+ "show": true
|
|
+ },
|
|
+ {
|
|
+ "format": "short",
|
|
+ "label": null,
|
|
+ "logBase": 1,
|
|
+ "max": null,
|
|
+ "min": null,
|
|
+ "show": false
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+ ],
|
|
+ "repeat": null,
|
|
+ "repeatIteration": null,
|
|
+ "repeatRowId": null,
|
|
+ "showTitle": true,
|
|
+ "title": "Storage IO - Distribution",
|
|
"titleSize": "h6"
|
|
}
|
|
],
|
|
@@ -2209,7 +2667,7 @@
|
|
|
|
],
|
|
"query": "label_values(kube_pod_info, cluster)",
|
|
- "refresh": 1,
|
|
+ "refresh": 2,
|
|
"regex": "",
|
|
"sort": 1,
|
|
"tagValuesQuery": "",
|
|
@@ -2236,7 +2694,7 @@
|
|
|
|
],
|
|
"query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)",
|
|
- "refresh": 1,
|
|
+ "refresh": 2,
|
|
"regex": "",
|
|
"sort": 1,
|
|
"tagValuesQuery": "",
|
|
@@ -2283,4 +2741,4 @@
|
|
"uid": "85a562078cdf77779eaa1add43ccec1e",
|
|
"version": 0
|
|
}
|
|
-{{- end }}
|
|
\ No newline at end of file
|
|
+{{- end }}
|