Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
347 changes: 342 additions & 5 deletions dashboards/k8s-views-pods.json
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,343 @@
"title": "Container Restarts by container",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto",
"wrapText": false
},
"filterable": true,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 1
},
{
"color": "red",
"value": 5
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "reason"
},
"properties": [
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"CrashLoopBackOff": {
"color": "light-red",
"index": 0,
"text": "CrashLoopBackOff"
},
"ErrImagePull": {
"color": "light-orange",
"index": 1,
"text": "ErrImagePull"
},
"ImagePullBackOff": {
"color": "light-orange",
"index": 2,
"text": "ImagePullBackOff"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 47
},
"id": 63,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "{__name__=\"kube_pod_container_status_waiting_reason\", container=\"search-analytics\", endpoint=\"http\", instance=\"192.168.1.1:8080\", job=\"kube-state-metrics\", namespace=\"apps\", pod=\"search-analytics-6bf74bdb49-qtcrj\", reason=\"CrashLoopBackOff\", service=\"kube-state-metrics\", uid=\"f1499e03-761a-45c9-b1e5-43bce2bdb761\"}"
}
]
},
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "\n kube_pod_container_status_waiting_reason{\n reason=~\"ErrImagePull|ImagePullBackOff|CrashLoopBackOff\"\n } == 1",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Pods with Container Issues",
"transformations": [
{
"id": "labelsToFields",
"options": {
"keepLabels": [
"namespace",
"pod",
"reason",
"container"
],
"mode": "columns"
}
},
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"namespace",
"pod",
"reason",
"container"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"includeByName": {},
"indexByName": {},
"renameByName": {
"container": "Container",
"namespace": "Namespace",
"pod": "Pod Name",
"reason": "Reason"
}
}
},
{
"id": "sortBy",
"options": {
"fields": {},
"sort": [
{
"field": "Pod Name"
}
]
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto",
"wrapText": false
},
"filterable": true,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 1
},
{
"color": "red",
"value": 5
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "condition"
},
"properties": [
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"false": {
"color": "light-red",
"index": 0,
"text": "False"
}
},
"type": "value"
}
]
},
{
"id": "custom.width",
"value": 104
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 47
},
"id": 64,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "kube_pod_status_scheduled{condition=\"false\"} == 1",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Unscheduled Pods",
"transformations": [
{
"id": "labelsToFields",
"options": {
"keepLabels": [
"namespace",
"pod",
"reason",
"container"
],
"mode": "columns"
}
},
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"container",
"namespace",
"pod",
"condition"
]
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"includeByName": {},
"indexByName": {
"condition": 3,
"container": 0,
"namespace": 1,
"pod": 2
},
"renameByName": {
"condition": "Condition",
"container": "Container",
"namespace": "Namespace",
"pod": "Pod Name"
}
}
}
],
"type": "table"
},
{
"collapsed": false,
"datasource": {
Expand All @@ -2103,7 +2440,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 47
"y": 55
},
"id": 45,
"panels": [],
Expand Down Expand Up @@ -2184,7 +2521,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 48
"y": 56
},
"id": 31,
"options": {
Expand Down Expand Up @@ -2292,7 +2629,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 48
"y": 56
},
"id": 34,
"options": {
Expand Down Expand Up @@ -2400,7 +2737,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 56
"y": 64
},
"id": 36,
"options": {
Expand Down Expand Up @@ -2508,7 +2845,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 56
"y": 64
},
"id": 37,
"options": {
Expand Down