KubeZero/charts/kubezero-metrics/jsonnet/dashboards/persistentvolumesusage.json

311 lines
9.7 KiB
JSON
Raw Permalink Normal View History

{
"editable": false,
"links": [
{
"asDropdown": true,
"includeVars": true,
"keepTime": true,
"tags": [
"kubernetes"
],
"targetBlank": false,
"title": "Kubernetes",
"type": "dashboards"
}
],
2024-07-19 14:14:43 +00:00
"panels": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "bytes"
}
},
"gridPos": {
"h": 7,
"w": 18,
"y": 0
},
"id": 1,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
2024-07-19 14:14:43 +00:00
"displayMode": "table",
"placement": "right",
"showLegend": true
},
2024-07-19 14:14:43 +00:00
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "(\n sum without(instance, node) (topk(1, (kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n -\n sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n)\n",
"legendFormat": "Used Space"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n",
"legendFormat": "Free Space"
}
],
2024-07-19 14:14:43 +00:00
"title": "Volume Space Usage",
"type": "timeseries"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "orange",
"value": 80
},
{
"color": "red",
"value": 90
}
]
},
"unit": "percent"
}
},
"gridPos": {
"h": 7,
"w": 6,
"x": 18,
"y": 0
},
"id": 2,
"interval": "1m",
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "max without(instance,node) (\n(\n topk(1, kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n -\n topk(1, kubelet_volume_stats_available_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n)\n/\ntopk(1, kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n* 100)\n",
"instant": true
}
],
"title": "Volume Space Usage",
"type": "gauge"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": true
},
2024-07-19 14:14:43 +00:00
"unit": "none"
}
},
"gridPos": {
"h": 7,
"w": 18,
"y": 7
},
"id": 3,
"interval": "1m",
"options": {
"legend": {
"asTable": true,
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))",
"legendFormat": "Used inodes"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
2024-07-19 14:14:43 +00:00
"expr": "(\n sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n -\n sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n)\n",
"legendFormat": "Free inodes"
}
],
"title": "Volume inodes Usage",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
2024-07-19 14:14:43 +00:00
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "orange",
"value": 80
},
{
"color": "red",
"value": 90
}
]
},
"unit": "percent"
}
},
"gridPos": {
"h": 7,
"w": 6,
"x": 18,
"y": 7
},
"id": 4,
"interval": "1m",
"pluginVersion": "v11.1.0",
2024-07-19 14:14:43 +00:00
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"expr": "max without(instance,node) (\ntopk(1, kubelet_volume_stats_inodes_used{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n/\ntopk(1, kubelet_volume_stats_inodes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})\n* 100)\n",
"instant": true
}
],
2024-07-19 14:14:43 +00:00
"title": "Volume inodes Usage",
"type": "gauge"
}
],
2024-07-19 14:14:43 +00:00
"refresh": "10s",
"schemaVersion": 39,
"tags": [
"kubernetes"
],
"templating": {
"list": [
{
"current": {
2023-11-27 12:45:06 +00:00
"selected": true,
"text": "default",
"value": "default"
},
"hide": 0,
"label": "Data source",
"name": "datasource",
"query": "prometheus",
"regex": "",
"type": "datasource"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 2,
"label": "cluster",
"name": "cluster",
"query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\"}, cluster)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 0,
"label": "Namespace",
"name": "namespace",
"query": "label_values(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\"}, namespace)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
},
{
2024-07-19 14:14:43 +00:00
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"hide": 0,
"label": "PersistentVolumeClaim",
"name": "volume",
"query": "label_values(kubelet_volume_stats_capacity_bytes{cluster=\"$cluster\", job=\"kubelet\", namespace=\"$namespace\"}, persistentvolumeclaim)",
"refresh": 2,
"sort": 1,
2024-07-19 14:14:43 +00:00
"type": "query"
}
]
},
"time": {
2024-07-19 14:14:43 +00:00
"from": "now-1h",
"to": "now"
},
"timezone": "UTC",
"title": "Persistent Volumes",
2024-07-19 14:14:43 +00:00
"uid": "919b92a8e8041bd567af9edab12c840c"
}