Skip to content

Instantly share code, notes, and snippets.

@devops-school
Last active April 24, 2026 10:30
Show Gist options
  • Select an option

  • Save devops-school/84d4b2b7e92a5769e94f9ea0234245b1 to your computer and use it in GitHub Desktop.

Select an option

Save devops-school/84d4b2b7e92a5769e94f9ea0234245b1 to your computer and use it in GitHub Desktop.
Grafana Lab with Graphite Datasource metrics – Dashboard
{
"__inputs": [
{
"name": "DS_GRAPHITE",
"label": "Graphite",
"description": "Graphite datasource",
"type": "datasource",
"pluginId": "graphite",
"pluginName": "Graphite"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "13.0.0"
},
{
"type": "datasource",
"id": "graphite",
"name": "Graphite",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
}
],
"uid": "linux-graphite-telegraf-actual",
"title": "Linux Monitoring - Graphite Telegraf Actual Metrics",
"tags": [
"graphite",
"telegraf",
"linux",
"grafana-13"
],
"timezone": "browser",
"schemaVersion": 42,
"version": 1,
"refresh": "10s",
"time": {
"from": "now-15m",
"to": "now"
},
"templating": {
"list": []
},
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"panels": [
{
"id": 1,
"type": "timeseries",
"title": "CPU Usage %",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 0,
"y": 0,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(telegraf.linux-demo.cpu.usage_active, 'CPU Active %')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.cpu.usage_system, 'CPU System %')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.cpu.usage_user, 'CPU User %')",
"refId": "C",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 70
},
{
"color": "red",
"value": 90
}
]
},
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 2,
"type": "timeseries",
"title": "Memory Used %",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(telegraf.linux-demo.mem.used_percent, 'Memory Used %')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 75
},
{
"color": "red",
"value": 90
}
]
},
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 3,
"type": "timeseries",
"title": "System Load Average",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 0,
"y": 8,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(telegraf.linux-demo.system.load1, 'Load 1m')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.system.load5, 'Load 5m')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.system.load15, 'Load 15m')",
"refId": "C",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "short",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 4,
"type": "timeseries",
"title": "Disk Usage %",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 12,
"y": 8,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(telegraf.linux-demo.disk.used_percent, 'Disk Used %')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.disk.inodes_used_percent, 'Inodes Used %')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 75
},
{
"color": "red",
"value": 90
}
]
},
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 5,
"type": "timeseries",
"title": "Network Traffic",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 0,
"y": 16,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(nonNegativeDerivative(telegraf.linux-demo.net.bytes_recv), 'Network RX bytes/sec')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(nonNegativeDerivative(telegraf.linux-demo.net.bytes_sent), 'Network TX bytes/sec')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "Bps",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 6,
"type": "timeseries",
"title": "Process Count",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 12,
"y": 16,
"w": 12,
"h": 8
},
"targets": [
{
"target": "alias(telegraf.linux-demo.processes.total, 'Total Processes')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.processes.running, 'Running Processes')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.processes.sleeping, 'Sleeping Processes')",
"refId": "C",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "short",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"min": 0
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
},
{
"id": 7,
"type": "stat",
"title": "Zombie Processes",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 0,
"y": 24,
"w": 6,
"h": 5
},
"targets": [
{
"target": "alias(telegraf.linux-demo.processes.zombies, 'Zombie Processes')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "short",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
},
"min": 0
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
}
},
{
"id": 8,
"type": "stat",
"title": "Swap Used %",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 6,
"y": 24,
"w": 6,
"h": 5
},
"targets": [
{
"target": "alias(telegraf.linux-demo.swap.used_percent, 'Swap Used %')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 50
},
{
"color": "red",
"value": 80
}
]
},
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
}
},
{
"id": 9,
"type": "stat",
"title": "System Uptime",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 12,
"y": 24,
"w": 6,
"h": 5
},
"targets": [
{
"target": "alias(telegraf.linux-demo.system.uptime, 'System Uptime')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "s",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
}
},
{
"id": 10,
"type": "timeseries",
"title": "CPU Idle vs Active",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
},
"gridPos": {
"x": 18,
"y": 24,
"w": 6,
"h": 5
},
"targets": [
{
"target": "alias(telegraf.linux-demo.cpu.usage_idle, 'CPU Idle %')",
"refId": "A",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
},
{
"target": "alias(telegraf.linux-demo.cpu.usage_active, 'CPU Active %')",
"refId": "B",
"datasource": {
"type": "graphite",
"uid": "${DS_GRAPHITE}"
}
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment