2021-04-26 14:27:19 +00:00
|
|
|
{
|
|
|
|
"editable": false,
|
2024-07-19 14:14:43 +00:00
|
|
|
"panels": [
|
2021-04-26 14:27:19 +00:00
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "datasource",
|
|
|
|
"uid": "-- Mixed --"
|
|
|
|
},
|
|
|
|
"fieldConfig": {
|
|
|
|
"defaults": {
|
|
|
|
"custom": {
|
|
|
|
"fillOpacity": 10,
|
|
|
|
"showPoints": "never",
|
|
|
|
"spanNulls": true
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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"
|
2021-04-26 14:27:19 +00:00
|
|
|
],
|
2024-07-19 14:14:43 +00:00
|
|
|
"displayMode": "table",
|
|
|
|
"placement": "right",
|
|
|
|
"showLegend": true
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
2024-07-19 14:14:43 +00:00
|
|
|
"tooltip": {
|
|
|
|
"mode": "single"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"pluginVersion": "v11.0.0",
|
|
|
|
"targets": [
|
2021-04-26 14:27:19 +00:00
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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}"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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"
|
2021-04-26 14:27:19 +00:00
|
|
|
}
|
|
|
|
],
|
2024-07-19 14:14:43 +00:00
|
|
|
"title": "Volume Space Usage",
|
|
|
|
"type": "timeseries"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
|
|
|
{
|
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.0.0",
|
|
|
|
"targets": [
|
2021-04-26 14:27:19 +00:00
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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.0.0",
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
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.0.0",
|
|
|
|
"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
|
2021-04-26 14:27:19 +00:00
|
|
|
}
|
|
|
|
],
|
2024-07-19 14:14:43 +00:00
|
|
|
"title": "Volume inodes Usage",
|
|
|
|
"type": "gauge"
|
2021-04-26 14:27:19 +00:00
|
|
|
}
|
|
|
|
],
|
2024-07-19 14:14:43 +00:00
|
|
|
"refresh": "10s",
|
|
|
|
"schemaVersion": 39,
|
2021-04-26 14:27:19 +00:00
|
|
|
"tags": [
|
|
|
|
"kubernetes"
|
|
|
|
],
|
|
|
|
"templating": {
|
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"current": {
|
2023-11-27 12:45:06 +00:00
|
|
|
"selected": true,
|
2021-04-26 14:27:19 +00:00
|
|
|
"text": "default",
|
|
|
|
"value": "default"
|
|
|
|
},
|
|
|
|
"hide": 0,
|
2024-04-04 13:39:36 +00:00
|
|
|
"label": "Data source",
|
2021-04-26 14:27:19 +00:00
|
|
|
"name": "datasource",
|
|
|
|
"query": "prometheus",
|
|
|
|
"regex": "",
|
|
|
|
"type": "datasource"
|
|
|
|
},
|
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
|
|
|
},
|
2021-04-26 14:27:19 +00:00
|
|
|
"hide": 2,
|
|
|
|
"label": "cluster",
|
|
|
|
"name": "cluster",
|
2022-09-16 09:21:38 +00:00
|
|
|
"query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\"}, cluster)",
|
2021-04-26 14:27:19 +00:00
|
|
|
"refresh": 2,
|
|
|
|
"sort": 1,
|
2024-07-19 14:14:43 +00:00
|
|
|
"type": "query"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
|
|
|
},
|
2021-04-26 14:27:19 +00:00
|
|
|
"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"
|
2021-04-26 14:27:19 +00:00
|
|
|
},
|
|
|
|
{
|
2024-07-19 14:14:43 +00:00
|
|
|
"datasource": {
|
|
|
|
"type": "prometheus",
|
|
|
|
"uid": "${datasource}"
|
|
|
|
},
|
2021-04-26 14:27:19 +00:00
|
|
|
"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"
|
2021-04-26 14:27:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"time": {
|
2024-07-19 14:14:43 +00:00
|
|
|
"from": "now-1h",
|
2021-04-26 14:27:19 +00:00
|
|
|
"to": "now"
|
|
|
|
},
|
|
|
|
"timezone": "UTC",
|
2021-04-26 14:46:35 +00:00
|
|
|
"title": "Persistent Volumes",
|
2024-07-19 14:14:43 +00:00
|
|
|
"uid": "919b92a8e8041bd567af9edab12c840c"
|
2021-04-26 14:27:19 +00:00
|
|
|
}
|