Skip to content

Commit

Permalink
feat: added container image used panel in ns
Browse files Browse the repository at this point in the history
Signed-off-by: David Calvert <[email protected]>
  • Loading branch information
dotdc committed Oct 13, 2024
1 parent f3d2cc9 commit dc731ac
Showing 1 changed file with 117 additions and 14 deletions.
131 changes: 117 additions & 14 deletions dashboards/k8s-views-namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"sizing": "auto",
"text": {}
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.2.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -218,7 +218,7 @@
"sizing": "auto",
"text": {}
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.2.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -484,7 +484,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.2.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -586,7 +586,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.2.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1850,6 +1850,109 @@
"title": "Replicas unavailable by deployment",
"type": "timeseries"
},
{
"datasource": {
"default": false,
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 64
},
"id": 82,
"options": {
"legend": {
"calcs": [
"min",
"max",
"last"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "count(rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\", image!=\"\", pod=~\"${created_by}.*\", cluster=\"$cluster\"}[$__rate_interval])) by (image)",
"interval": "",
"legendFormat": "{{ image }}",
"range": true,
"refId": "A"
}
],
"title": "Container Image Used",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
Expand All @@ -1860,7 +1963,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 64
"y": 72
},
"id": 42,
"panels": [],
Expand Down Expand Up @@ -1933,7 +2036,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 65
"y": 73
},
"id": 65,
"options": {
Expand Down Expand Up @@ -2031,7 +2134,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 65
"y": 73
},
"id": 66,
"options": {
Expand Down Expand Up @@ -2141,7 +2244,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 73
"y": 81
},
"id": 27,
"options": {
Expand Down Expand Up @@ -2179,7 +2282,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 81
"y": 89
},
"id": 76,
"panels": [],
Expand Down Expand Up @@ -2252,7 +2355,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 82
"y": 90
},
"id": 78,
"options": {
Expand Down Expand Up @@ -2365,7 +2468,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 82
"y": 90
},
"id": 79,
"options": {
Expand Down Expand Up @@ -2478,7 +2581,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 90
"y": 98
},
"id": 80,
"options": {
Expand Down Expand Up @@ -2591,7 +2694,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 90
"y": 98
},
"id": 81,
"options": {
Expand Down Expand Up @@ -2789,6 +2892,6 @@
"timezone": "",
"title": "Kubernetes / Views / Namespaces",
"uid": "k8s_views_ns",
"version": 38,
"version": 39,
"weekStart": ""
}

0 comments on commit dc731ac

Please sign in to comment.