mirror of https://git.rancher.io/charts
839 lines
37 KiB
Diff
839 lines
37 KiB
Diff
--- charts-original/templates/grafana/dashboards-1.14/k8s-resources-cluster.yaml
|
|
+++ charts/templates/grafana/dashboards-1.14/k8s-resources-cluster.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-cluster" | trunc 63 | trimSuffix "-" }}
|
|
annotations:
|
|
{{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
|
|
@@ -163,7 +163,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})",
|
|
+ "expr": "sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{resource=\"cpu\",cluster=\"$cluster\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -247,7 +247,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_cpu_cores{cluster=\"$cluster\"})",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"}) / sum(kube_node_status_allocatable{resource=\"cpu\",cluster=\"$cluster\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -331,7 +331,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
|
+ "expr": "1 - sum(:node_memory_MemAvailable_bytes:sum{cluster=\"$cluster\"}) / sum(node_memory_MemTotal_bytes{cluster=\"$cluster\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -415,7 +415,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
|
+ "expr": "sum(namespace_memory:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable{resource=\"memory\",cluster=\"$cluster\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -499,7 +499,7 @@
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) / sum(kube_node_status_allocatable_memory_bytes{cluster=\"$cluster\"})",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"}) / sum(kube_node_status_allocatable{resource=\"memory\",cluster=\"$cluster\"})",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -894,7 +894,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(namespace_cpu:kube_pod_container_resource_requests:sum{cluster=\"$cluster\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -903,7 +903,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"cpu\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -912,7 +912,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -921,7 +921,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\"}) by (namespace) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"cpu\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1321,7 +1321,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1330,7 +1330,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_requests{cluster=\"$cluster\", resource=\"memory\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1339,7 +1339,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1348,7 +1348,7 @@
|
|
"step": 10
|
|
},
|
|
{
|
|
- "expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\"}) by (namespace)",
|
|
+ "expr": "sum(container_memory_rss{cluster=\"$cluster\", container!=\"\"}) by (namespace) / sum(kube_pod_container_resource_limits{cluster=\"$cluster\", resource=\"memory\"}) by (namespace)",
|
|
"format": "table",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
@@ -1705,7 +1705,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Current Network Usage",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -1745,7 +1745,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1797,19 +1797,7 @@
|
|
"show": false
|
|
}
|
|
]
|
|
- }
|
|
- ],
|
|
- "repeat": null,
|
|
- "repeatIteration": null,
|
|
- "repeatRowId": null,
|
|
- "showTitle": true,
|
|
- "title": "Network",
|
|
- "titleSize": "h6"
|
|
- },
|
|
- {
|
|
- "collapse": false,
|
|
- "height": "250px",
|
|
- "panels": [
|
|
+ },
|
|
{
|
|
"aliasColors": {
|
|
|
|
@@ -1843,7 +1831,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1901,7 +1889,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Bandwidth",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -1941,7 +1929,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -1993,19 +1981,7 @@
|
|
"show": false
|
|
}
|
|
]
|
|
- }
|
|
- ],
|
|
- "repeat": null,
|
|
- "repeatIteration": null,
|
|
- "repeatRowId": null,
|
|
- "showTitle": true,
|
|
- "title": "Network",
|
|
- "titleSize": "h6"
|
|
- },
|
|
- {
|
|
- "collapse": false,
|
|
- "height": "250px",
|
|
- "panels": [
|
|
+ },
|
|
{
|
|
"aliasColors": {
|
|
|
|
@@ -2039,7 +2015,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -2097,7 +2073,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Average Container Bandwidth by Namespace",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -2137,7 +2113,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -2189,19 +2165,7 @@
|
|
"show": false
|
|
}
|
|
]
|
|
- }
|
|
- ],
|
|
- "repeat": null,
|
|
- "repeatIteration": null,
|
|
- "repeatRowId": null,
|
|
- "showTitle": true,
|
|
- "title": "Network",
|
|
- "titleSize": "h6"
|
|
- },
|
|
- {
|
|
- "collapse": false,
|
|
- "height": "250px",
|
|
- "panels": [
|
|
+ },
|
|
{
|
|
"aliasColors": {
|
|
|
|
@@ -2235,7 +2199,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -2293,7 +2257,7 @@
|
|
"repeatIteration": null,
|
|
"repeatRowId": null,
|
|
"showTitle": true,
|
|
- "title": "Network",
|
|
+ "title": "Rate of Packets",
|
|
"titleSize": "h6"
|
|
},
|
|
{
|
|
@@ -2333,7 +2297,7 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
@@ -2385,13 +2349,99 @@
|
|
"show": false
|
|
}
|
|
]
|
|
+ },
|
|
+ {
|
|
+ "aliasColors": {
|
|
+
|
|
+ },
|
|
+ "bars": false,
|
|
+ "dashLength": 10,
|
|
+ "dashes": false,
|
|
+ "datasource": "$datasource",
|
|
+ "fill": 10,
|
|
+ "id": 19,
|
|
+ "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=~\".+\"}[$__rate_interval])) by (namespace)",
|
|
+ "format": "time_series",
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "{{`{{`}}namespace{{`}}`}}",
|
|
+ "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"
|
|
},
|
|
{
|
|
@@ -2406,8 +2456,9 @@
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "$datasource",
|
|
+ "decimals": -1,
|
|
"fill": 10,
|
|
- "id": 19,
|
|
+ "id": 20,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
@@ -2431,12 +2482,12 @@
|
|
|
|
],
|
|
"spaceLength": 10,
|
|
- "span": 12,
|
|
+ "span": 6,
|
|
"stack": true,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
- "expr": "sum(irate(container_network_transmit_packets_dropped_total{cluster=\"$cluster\", namespace=~\".+\"}[$__rate_interval])) by (namespace)",
|
|
+ "expr": "ceil(sum by(namespace) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\"}[5m]) + rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\"}[5m])))",
|
|
"format": "time_series",
|
|
"intervalFactor": 2,
|
|
"legendFormat": "{{`{{`}}namespace{{`}}`}}",
|
|
@@ -2449,7 +2500,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": 21,
|
|
+ "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(namespace) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\"}[5m]) + rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "time_series",
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "{{`{{`}}namespace{{`}}`}}",
|
|
+ "legendLink": null,
|
|
+ "step": 10
|
|
+ }
|
|
+ ],
|
|
+ "thresholds": [
|
|
+
|
|
+ ],
|
|
+ "timeFrom": null,
|
|
+ "timeShift": null,
|
|
+ "title": "ThroughPut(Read+Write)",
|
|
"tooltip": {
|
|
"shared": false,
|
|
"sort": 0,
|
|
@@ -2489,7 +2626,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": 22,
|
|
+ "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": "Namespace",
|
|
+ "colorMode": null,
|
|
+ "colors": [
|
|
+
|
|
+ ],
|
|
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
+ "decimals": 2,
|
|
+ "link": true,
|
|
+ "linkTargetBlank": false,
|
|
+ "linkTooltip": "Drill down to pods",
|
|
+ "linkUrl": "./d/85a562078cdf77779eaa1add43ccec1e/k8s-resources-namespace?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$__cell",
|
|
+ "pattern": "namespace",
|
|
+ "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(namespace) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "A",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(namespace) (rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "B",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(namespace) (rate(container_fs_reads_total{container!=\"\", cluster=\"$cluster\"}[5m]) + rate(container_fs_writes_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "C",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "D",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(namespace) (rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\"}[5m]))",
|
|
+ "format": "table",
|
|
+ "instant": true,
|
|
+ "intervalFactor": 2,
|
|
+ "legendFormat": "",
|
|
+ "refId": "E",
|
|
+ "step": 10
|
|
+ },
|
|
+ {
|
|
+ "expr": "sum by(namespace) (rate(container_fs_reads_bytes_total{container!=\"\", cluster=\"$cluster\"}[5m]) + rate(container_fs_writes_bytes_total{container!=\"\", cluster=\"$cluster\"}[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"
|
|
}
|
|
],
|
|
@@ -2579,4 +3021,4 @@
|
|
"uid": "efa86fd1d0c121a26444b636a3f509a8",
|
|
"version": 0
|
|
}
|
|
-{{- end }}
|
|
\ No newline at end of file
|
|
+{{- end }}
|