Last active
January 28, 2023 08:47
-
-
Save ybizeul/9e7e0d7de3705f47f0ba2d7e47752c67 to your computer and use it in GitHub Desktop.
NAbox dashboard with memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "datasource", | |
| "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" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 0, | |
| "iteration": 1674808866305, | |
| "links": [], | |
| "liveNow": false, | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "decimals": 0, | |
| "mappings": [], | |
| "max": 100, | |
| "min": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "percent" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 9, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 14, | |
| "options": { | |
| "displayMode": "gradient", | |
| "minVizHeight": 10, | |
| "minVizWidth": 0, | |
| "orientation": "horizontal", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "last" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showUnfilled": true | |
| }, | |
| "pluginVersion": "8.5.15", | |
| "targets": [ | |
| { | |
| "expr": "sum by (name) (rate(container_cpu_usage_seconds_total {job='container-exporter',name=~'.+',nabox_core='true'}[1m])*100)", | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "NAbox Processes", | |
| "type": "bargauge" | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "decimals": 0, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [] | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 1, | |
| "fillGradient": 1, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 15, | |
| "x": 9, | |
| "y": 0 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 2, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": false, | |
| "current": true, | |
| "max": false, | |
| "min": false, | |
| "rightSide": true, | |
| "show": true, | |
| "sort": "current", | |
| "sortDesc": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "nullPointMode": "null as zero", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "8.5.15", | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "expr": "sum by(name) (rate(container_cpu_usage_seconds_total{name=~'.+',job='container-exporter',nabox_core='true'}[5m])*100) > 5", | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| }, | |
| { | |
| "expr": "sum (sum by (name) (rate(container_cpu_usage_seconds_total{name=~'.+',job='container-exporter',nabox_core='true'}[5m])*100) <= 5)", | |
| "interval": "", | |
| "legendFormat": "Other", | |
| "refId": "B" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeRegions": [], | |
| "title": "CPU Usage", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "mode": "time", | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "decimals": 0, | |
| "format": "percent", | |
| "label": "", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "logBase": 1, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| } | |
| ] | |
| }, | |
| "unit": "decbytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 9, | |
| "x": 0, | |
| "y": 8 | |
| }, | |
| "id": 16, | |
| "options": { | |
| "displayMode": "basic", | |
| "minVizHeight": 10, | |
| "minVizWidth": 0, | |
| "orientation": "horizontal", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "lastNotNull" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showUnfilled": true | |
| }, | |
| "pluginVersion": "8.5.15", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "editorMode": "code", | |
| "exemplar": false, | |
| "expr": "sum by (name) (container_memory_usage_bytes{job='container-exporter',name=~'.+',nabox_core='true'})", | |
| "instant": false, | |
| "legendFormat": "{{name}}", | |
| "range": true, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Memory Usage", | |
| "type": "bargauge" | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "decimals": 0, | |
| "fieldConfig": { | |
| "defaults": { | |
| "links": [], | |
| "unit": "decbytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "fill": 1, | |
| "fillGradient": 1, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 15, | |
| "x": 9, | |
| "y": 8 | |
| }, | |
| "hiddenSeries": false, | |
| "id": 17, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": false, | |
| "current": true, | |
| "max": false, | |
| "min": false, | |
| "rightSide": true, | |
| "show": true, | |
| "sort": "current", | |
| "sortDesc": true, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "nullPointMode": "null as zero", | |
| "options": { | |
| "alertThreshold": true | |
| }, | |
| "percentage": false, | |
| "pluginVersion": "8.5.15", | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "expr": "sum by (name) (container_memory_usage_bytes{name=~'.+',job='container-exporter',nabox_core='true'})", | |
| "interval": "", | |
| "legendFormat": "{{name}}", | |
| "refId": "A" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeRegions": [], | |
| "title": "Memory Usage", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 2, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "mode": "time", | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "decimals": 0, | |
| "format": "decbytes", | |
| "label": "", | |
| "logBase": 1, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "logBase": 1, | |
| "show": false | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false | |
| } | |
| } | |
| ], | |
| "refresh": "1m", | |
| "schemaVersion": 36, | |
| "style": "dark", | |
| "tags": [ | |
| "NAbox" | |
| ], | |
| "templating": { | |
| "list": [ | |
| { | |
| "current": { | |
| "selected": false, | |
| "text": "All", | |
| "value": "$__all" | |
| }, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "PBFA97CFB590B2093" | |
| }, | |
| "definition": "label_values(name)", | |
| "hide": 0, | |
| "includeAll": true, | |
| "multi": false, | |
| "name": "Container", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(name)", | |
| "refId": "Prometheus-Container-Variable-Query" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "tagValuesQuery": "", | |
| "tagsQuery": "", | |
| "type": "query", | |
| "useTags": false | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-90d", | |
| "to": "now" | |
| }, | |
| "timepicker": { | |
| "refresh_intervals": [ | |
| "10s", | |
| "30s", | |
| "1m", | |
| "5m", | |
| "15m", | |
| "30m", | |
| "1h", | |
| "2h", | |
| "1d" | |
| ] | |
| }, | |
| "timezone": "", | |
| "title": "NAbox", | |
| "uid": "JgDq_akGk", | |
| "version": 6, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment