{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "9.3.1" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "Podman dashboard by DreamOfIce", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 17138, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto", "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Memory" }, "properties": [ { "id": "unit", "value": "bytes" }, { "id": "custom.width", "value": 90 } ] }, { "matcher": { "id": "byName", "options": "Status" }, "properties": [ { "id": "mappings", "value": [ { "options": { "0": { "color": "#c0c0c0", "index": 1, "text": "created" }, "1": { "index": 2, "text": "initialized" }, "2": { "color": "green", "index": 3, "text": "running" }, "3": { "index": 4, "text": "stopped" }, "4": { "color": "#808081", "index": 5, "text": "paused" }, "5": { "color": "red", "index": 6, "text": "exited" }, "6": { "color": "yellow", "index": 7, "text": "removing" }, "7": { "color": "yellow", "index": 8, "text": "stopping" }, "-1": { "color": "red", "index": 0, "text": "unknown" } }, "type": "value" } ] }, { "id": "custom.displayMode", "value": "color-text" }, { "id": "custom.width", "value": 75 } ] }, { "matcher": { "id": "byName", "options": "Exit code" }, "properties": [ { "id": "custom.displayMode", "value": "color-text" }, { "id": "mappings", "value": [ { "options": { "0": { "color": "#808080", "index": 0, "text": "none" } }, "type": "value" }, { "options": { "from": 1, "result": { "color": "red", "index": 1 }, "to": 255 }, "type": "range" } ] }, { "id": "custom.width", "value": 75 } ] }, { "matcher": { "id": "byName", "options": "Uptime" }, "properties": [ { "id": "unit", "value": "s" }, { "id": "custom.width", "value": 90 } ] }, { "matcher": { "id": "byName", "options": "PID" }, "properties": [ { "id": "custom.width", "value": 50 }, { "id": "decimals", "value": 0 } ] }, { "matcher": { "id": "byName", "options": "Host" }, "properties": [ { "id": "custom.width", "value": 90 } ] }, { "matcher": { "id": "byName", "options": "ID" }, "properties": [ { "id": "custom.width", "value": 121 } ] }, { "matcher": { "id": "byName", "options": "Mem Usage" }, "properties": [ { "id": "custom.width", "value": 100 }, { "id": "unit", "value": "percentunit" }, { "id": "color", "value": { "mode": "continuous-GrYlRd" } }, { "id": "custom.displayMode", "value": "gradient-gauge" }, { "id": "decimals", "value": 2 } ] } ] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 0 }, "id": 11, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_info", "format": "table", "hide": false, "instant": true, "legendFormat": "基本信息", "range": false, "refId": "info" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_state", "format": "table", "hide": false, "instant": true, "legendFormat": "状态", "range": false, "refId": "state" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_mem_usage_bytes", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "momery" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_exit_code", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "exit_code" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "time() - podman_container_started_seconds", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "uptime" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_pids", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "PID" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_mem_usage_bytes / (podman_container_mem_limit_bytes)", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "mem_percentage" } ], "title": "Container Overview", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "id", "image", "instance", "name", "ports", "Value #state", "Value #momery", "Value #exit_code", "Value #uptime", "Value #PID", "Value #mem_percentage" ] } } }, { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "Value #A": true, "__name__": true, "job": true }, "indexByName": { "Value #PID": 8, "Value #exit_code": 10, "Value #mem_percentage": 4, "Value #momery": 3, "Value #state": 7, "Value #uptime": 9, "id": 1, "image": 5, "instance": 2, "name": 0, "ports": 6 }, "renameByName": { "Value": "", "Value #B": "状态", "Value #C": "退出代码", "Value #PID": "PID", "Value #exit_code": "Exit code", "Value #ext_code": "错误代码", "Value #mem_max": "内存使用率", "Value #mem_percentage": "Mem Usage", "Value #momery": "Memory", "Value #state": "Status", "Value #uptime": "Uptime", "id": "ID", "image": "Image", "instance": "Host", "name": "name", "ports": "Port", "state": "状态" } } } ], "type": "table" }, { "gridPos": { "h": 1, "w": 24, "x": 0, "y": 7 }, "id": 19, "title": "Overview", "type": "row" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 8 }, "id": 17, "panels": [], "title": "Container Details(Host: $instance)", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "decimals": 2, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "percentage", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 9 }, "id": 13, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "sum(rate(podman_container_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval])) / count(node_cpu_seconds_total{instance=~\"$instance\",mode=\"idle\"})", "format": "time_series", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Total CPU of containers", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 4, "y": 9 }, "id": 25, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "increase(podman_container_cpu_seconds_total{instance=~\"$instance\"}[$__rate_interval]) / 60", "legendFormat": "{{id}}", "range": true, "refId": "A" } ], "title": "CPU", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": ".+(上限)$" }, "properties": [ { "id": "custom.lineStyle", "value": { "fill": "solid" } } ] } ] }, "gridPos": { "h": 8, "w": 10, "x": 14, "y": 9 }, "id": 21, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_mem_usage_bytes{instance=~\"$instance\"}", "format": "time_series", "instant": false, "legendFormat": "{{id}}_current", "range": true, "refId": "container_usage" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_container_mem_limit_bytes{instance=~\"$instance\"}", "hide": false, "legendFormat": "{{id}}_max", "range": true, "refId": "container_max" } ], "title": "Memory", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "Value", "__name__", "Time" ] } } } ], "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "decimals": 2, "mappings": [], "max": 1, "min": 0, "thresholds": { "mode": "percentage", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 17 }, "id": 29, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "sum(podman_container_mem_usage_bytes{instance=~\"$instance\"}) / sum(node_memory_MemTotal_bytes{instance=~\"$instance\"})", "format": "time_series", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Total memory of containers", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 4, "y": 17 }, "id": 23, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "increase(podman_container_block_input_total{instance=\"$instance\"}[$__rate_interval])", "legendFormat": "{{id}}_in", "range": true, "refId": "input" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "increase(podman_container_block_output_total{instance=\"$instance\"}[$__rate_interval])", "hide": false, "legendFormat": "{{id}}_out", "range": true, "refId": "output" } ], "title": "Disk", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "binbps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 14, "y": 17 }, "id": 27, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "increase(podman_container_net_input_total{instance=\"$instance\"}[$__rate_interval]) * 8", "legendFormat": "{{id}}_in", "range": true, "refId": "input" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "increase(podman_container_net_output_total{instance=\"$instance\"}[$__rate_interval]) * 8", "hide": false, "legendFormat": "{{id}}_out", "range": true, "refId": "output" } ], "title": "Networking", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 25 }, "id": 15, "panels": [], "title": "Image Details(Host: $instance)", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "fixedColor": "blue", "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "green", "value": null } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 26 }, "id": 33, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "sum(podman_image_size{instance=~\"$instance\"})", "format": "table", "instant": true, "legendFormat": "__auto", "range": false, "refId": "A" } ], "title": "Total Image Size", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "decimals": 2, "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 4, "y": 26 }, "id": 35, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "expr": "sum(podman_image_size{instance=~\"$instance\"}) / sum(node_filesystem_size_bytes{instance=~\"$instance\"})", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Disk Percentage", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto", "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Create Time" }, "properties": [ { "id": "unit", "value": "dateTimeFromNow" }, { "id": "custom.width", "value": 120 } ] }, { "matcher": { "id": "byName", "options": "Size" }, "properties": [ { "id": "unit", "value": "bits" }, { "id": "custom.width", "value": 120 } ] }, { "matcher": { "id": "byName", "options": "ID" }, "properties": [ { "id": "custom.width", "value": 120 } ] }, { "matcher": { "id": "byName", "options": "Tag" }, "properties": [ { "id": "custom.width", "value": 90 } ] } ] }, "gridPos": { "h": 8, "w": 16, "x": 8, "y": 26 }, "id": 31, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "9.3.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_image_info{instance=\"$instance\"}", "format": "table", "instant": true, "legendFormat": "__auto", "range": false, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_image_created_seconds{instance=\"$instance\"} * 1000", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "editorMode": "code", "exemplar": false, "expr": "podman_image_size{instance=\"$instance\"}", "format": "table", "hide": false, "instant": true, "legendFormat": "__auto", "range": false, "refId": "C" } ], "title": "Image Info", "transformations": [ { "id": "filterFieldsByName", "options": { "include": { "names": [ "id", "repository", "tag", "Value #B", "Value #C" ] } } }, { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": {}, "indexByName": {}, "renameByName": { "Value #B": "Create Time", "Value #C": "Size", "id": "ID", "repository": "Name", "tag": "Tag" } } } ], "type": "table" } ], "refresh": false, "schemaVersion": 37, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": " ", "current": {}, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS-OULUCLOUD-US}" }, "definition": "label_values(podman_container_info, instance)", "hide": 0, "includeAll": false, "label": "Host", "multi": false, "name": "instance", "options": [], "query": { "query": "label_values(podman_container_info, instance)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Podman-en", "uid": "V1DXpAcVz", "version": 1, "weekStart": "" }