The standard Node Exporter dashboards use Linux-specific memory metrics (node_memory_MemTotal_bytes, etc.) which don't exist on macOS. This adds a dashboard using macOS-native metrics (node_memory_total_bytes, node_memory_active_bytes, node_memory_wired_bytes, etc.). Features: - Instance selector dropdown to switch between hosts - Disk and network device multi-select filters - CPU usage by mode, system load graphs - macOS memory breakdown (Wired, Active, Compressed, Inactive, Free) - Memory pressure gauge - Disk I/O and IOPS - Filesystem usage - Network traffic, packets, and errors Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1134 lines
37 KiB
JSON
1134 lines
37 KiB
JSON
{
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 0},
|
|
"id": 100,
|
|
"panels": [],
|
|
"title": "Overview",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "dtdurations"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 0, "y": 1},
|
|
"id": 1,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "time() - node_boot_time_seconds{instance=~\"$instance\"}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Uptime",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "blue", "value": null}]
|
|
},
|
|
"unit": "decbytes"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 4, "y": 1},
|
|
"id": 2,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_total_bytes{instance=~\"$instance\"} or node_memory_MemTotal_bytes{instance=~\"$instance\"}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Total Memory",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "purple", "value": null}]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 8, "y": 1},
|
|
"id": 3,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "count(node_cpu_seconds_total{instance=~\"$instance\", mode=\"idle\"})",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "CPU Cores",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 4},
|
|
{"color": "red", "value": 8}
|
|
]
|
|
},
|
|
"unit": "short",
|
|
"decimals": 2
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 12, "y": 1},
|
|
"id": 4,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load1{instance=~\"$instance\"}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Load (1m)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 4},
|
|
{"color": "red", "value": 8}
|
|
]
|
|
},
|
|
"unit": "short",
|
|
"decimals": 2
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 16, "y": 1},
|
|
"id": 5,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load5{instance=~\"$instance\"}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Load (5m)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 4},
|
|
{"color": "red", "value": 8}
|
|
]
|
|
},
|
|
"unit": "short",
|
|
"decimals": 2
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 4, "w": 4, "x": 20, "y": 1},
|
|
"id": 6,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load15{instance=~\"$instance\"}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Load (15m)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 5},
|
|
"id": 101,
|
|
"panels": [],
|
|
"title": "CPU",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 30,
|
|
"gradientMode": "opacity",
|
|
"hideFrom": {"legend": false, "tooltip": false, "viz": false},
|
|
"insertNulls": false,
|
|
"lineInterpolation": "smooth",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {"type": "linear"},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {"group": "A", "mode": "normal"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"max": 100,
|
|
"min": 0,
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "percent"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byName", "options": "user"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "system"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "orange", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "nice"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "iowait"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "red", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 6},
|
|
"id": 10,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "avg by (mode) (rate(node_cpu_seconds_total{instance=~\"$instance\", mode!=\"idle\"}[5m])) * 100",
|
|
"legendFormat": "{{mode}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "CPU Usage by Mode",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byName", "options": "1m"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "red", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "5m"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "orange", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "15m"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "yellow", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 6},
|
|
"id": 11,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load1{instance=~\"$instance\"}",
|
|
"legendFormat": "1m",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load5{instance=~\"$instance\"}",
|
|
"legendFormat": "5m",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_load15{instance=~\"$instance\"}",
|
|
"legendFormat": "15m",
|
|
"refId": "C"
|
|
}
|
|
],
|
|
"title": "System Load",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 14},
|
|
"id": 102,
|
|
"panels": [],
|
|
"title": "Memory (macOS)",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"description": "macOS memory breakdown: Wired (cannot be paged out), Active (recently used), Compressed (compressed in memory), Inactive (not recently used), Free (unused)",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 30,
|
|
"gradientMode": "opacity",
|
|
"hideFrom": {"legend": false, "tooltip": false, "viz": false},
|
|
"insertNulls": false,
|
|
"lineInterpolation": "smooth",
|
|
"lineWidth": 1,
|
|
"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}]
|
|
},
|
|
"unit": "bytes"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byName", "options": "Wired"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "red", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "Active"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "orange", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "Compressed"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "purple", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "Inactive"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "yellow", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "Free"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 15},
|
|
"id": 20,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_wired_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Wired",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_active_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Active",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_compressed_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Compressed",
|
|
"refId": "C"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_inactive_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Inactive",
|
|
"refId": "D"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_free_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Free",
|
|
"refId": "E"
|
|
}
|
|
],
|
|
"title": "Memory Usage (macOS)",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"description": "Memory pressure based on (total - free - inactive) / total",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"max": 100,
|
|
"min": 0,
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 70},
|
|
{"color": "red", "value": 90}
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 8, "w": 4, "x": 12, "y": 15},
|
|
"id": 21,
|
|
"options": {
|
|
"orientation": "auto",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"showThresholdLabels": false,
|
|
"showThresholdMarkers": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "(1 - (node_memory_free_bytes{instance=~\"$instance\"} + node_memory_inactive_bytes{instance=~\"$instance\"}) / node_memory_total_bytes{instance=~\"$instance\"}) * 100",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Memory Pressure",
|
|
"type": "gauge"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"gradientMode": "opacity",
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "bytes"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byName", "options": "Used"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "orange", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byName", "options": "Total"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 8, "x": 16, "y": 15},
|
|
"id": 22,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_swap_used_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Used",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_memory_swap_total_bytes{instance=~\"$instance\"}",
|
|
"legendFormat": "Total",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"title": "Swap Usage",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 23},
|
|
"id": 103,
|
|
"panels": [],
|
|
"title": "Disk",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "Bps"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Read.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Write.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 24},
|
|
"id": 30,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_disk_read_bytes_total{instance=~\"$instance\", device=~\"$disk\"}[5m])",
|
|
"legendFormat": "Read ({{device}})",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_disk_written_bytes_total{instance=~\"$instance\", device=~\"$disk\"}[5m])",
|
|
"legendFormat": "Write ({{device}})",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"title": "Disk I/O",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "iops"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Read.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Write.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 24},
|
|
"id": 31,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_disk_reads_completed_total{instance=~\"$instance\", device=~\"$disk\"}[5m])",
|
|
"legendFormat": "Read IOPS ({{device}})",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_disk_writes_completed_total{instance=~\"$instance\", device=~\"$disk\"}[5m])",
|
|
"legendFormat": "Write IOPS ({{device}})",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"title": "Disk IOPS",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 32},
|
|
"id": 104,
|
|
"panels": [],
|
|
"title": "Filesystem",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "thresholds"},
|
|
"mappings": [],
|
|
"max": 100,
|
|
"min": 0,
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{"color": "green", "value": null},
|
|
{"color": "yellow", "value": 70},
|
|
{"color": "red", "value": 85}
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 6, "w": 12, "x": 0, "y": 33},
|
|
"id": 40,
|
|
"options": {
|
|
"displayMode": "gradient",
|
|
"minVizHeight": 10,
|
|
"minVizWidth": 0,
|
|
"orientation": "horizontal",
|
|
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false},
|
|
"showUnfilled": true,
|
|
"valueMode": "color"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "(1 - node_filesystem_avail_bytes{instance=~\"$instance\", fstype!~\"autofs|devfs|tmpfs\"} / node_filesystem_size_bytes{instance=~\"$instance\", fstype!~\"autofs|devfs|tmpfs\"}) * 100",
|
|
"legendFormat": "{{mountpoint}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Filesystem Usage %",
|
|
"type": "bargauge"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"gradientMode": "opacity",
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "bytes"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 6, "w": 12, "x": 12, "y": 33},
|
|
"id": 41,
|
|
"options": {
|
|
"legend": {"calcs": ["lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "node_filesystem_avail_bytes{instance=~\"$instance\", fstype!~\"autofs|devfs|tmpfs\"}",
|
|
"legendFormat": "{{mountpoint}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Filesystem Available",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 39},
|
|
"id": 105,
|
|
"panels": [],
|
|
"title": "Network",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "bps"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Receive.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Transmit.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 40},
|
|
"id": 50,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_receive_bytes_total{instance=~\"$instance\", device=~\"$netdev\"}[5m]) * 8",
|
|
"legendFormat": "Receive ({{device}})",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_transmit_bytes_total{instance=~\"$instance\", device=~\"$netdev\"}[5m]) * 8",
|
|
"legendFormat": "Transmit ({{device}})",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"title": "Network Traffic",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "pps"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Receive.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "green", "mode": "fixed"}}]
|
|
},
|
|
{
|
|
"matcher": {"id": "byRegexp", "options": ".*Transmit.*"},
|
|
"properties": [{"id": "color", "value": {"fixedColor": "blue", "mode": "fixed"}}]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 40},
|
|
"id": 51,
|
|
"options": {
|
|
"legend": {"calcs": ["mean", "max", "lastNotNull"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_receive_packets_total{instance=~\"$instance\", device=~\"$netdev\"}[5m])",
|
|
"legendFormat": "Receive ({{device}})",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_transmit_packets_total{instance=~\"$instance\", device=~\"$netdev\"}[5m])",
|
|
"legendFormat": "Transmit ({{device}})",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"title": "Network Packets",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {"mode": "palette-classic"},
|
|
"custom": {
|
|
"axisBorderShow": false,
|
|
"axisCenteredZero": false,
|
|
"axisColorMode": "text",
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"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": "none"},
|
|
"thresholdsStyle": {"mode": "off"}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{"color": "green", "value": null}]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 48},
|
|
"id": 52,
|
|
"options": {
|
|
"legend": {"calcs": ["sum"], "displayMode": "table", "placement": "right", "showLegend": true},
|
|
"tooltip": {"mode": "multi", "sort": "desc"}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_receive_errs_total{instance=~\"$instance\", device=~\"$netdev\"}[5m])",
|
|
"legendFormat": "Receive Errors ({{device}})",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_transmit_errs_total{instance=~\"$instance\", device=~\"$netdev\"}[5m])",
|
|
"legendFormat": "Transmit Errors ({{device}})",
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"expr": "rate(node_network_receive_drop_total{instance=~\"$instance\", device=~\"$netdev\"}[5m])",
|
|
"legendFormat": "Receive Drops ({{device}})",
|
|
"refId": "C"
|
|
}
|
|
],
|
|
"title": "Network Errors & Drops",
|
|
"type": "timeseries"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 38,
|
|
"tags": ["node-exporter", "macos", "darwin"],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"current": {},
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"definition": "label_values(node_uname_info, instance)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": "Instance",
|
|
"multi": false,
|
|
"name": "instance",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(node_uname_info, instance)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {},
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"definition": "label_values(node_disk_read_bytes_total{instance=~\"$instance\"}, device)",
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": "Disk",
|
|
"multi": true,
|
|
"name": "disk",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(node_disk_read_bytes_total{instance=~\"$instance\"}, device)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {},
|
|
"datasource": {"type": "prometheus", "uid": "prometheus"},
|
|
"definition": "label_values(node_network_receive_bytes_total{instance=~\"$instance\"}, device)",
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": "Network Device",
|
|
"multi": true,
|
|
"name": "netdev",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(node_network_receive_bytes_total{instance=~\"$instance\"}, device)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "/(en.*|eth.*)/",
|
|
"skipUrlSync": false,
|
|
"sort": 1,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "browser",
|
|
"title": "Node Exporter - macOS",
|
|
"uid": "node-exporter-macos",
|
|
"version": 1,
|
|
"weekStart": ""
|
|
}
|