0% found this document useful (0 votes)
2 views

network-dashboard

The document outlines a Grafana dashboard configuration for monitoring network bandwidth usage on DigitalOcean. It includes various panels displaying metrics such as total inbound and outbound traffic, public network traffic, and a heatmap for public inbound traffic. The dashboard is editable and integrates with a JSON datasource for real-time data retrieval.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

network-dashboard

The document outlines a Grafana dashboard configuration for monitoring network bandwidth usage on DigitalOcean. It includes various panels displaying metrics such as total inbound and outbound traffic, public network traffic, and a heatmap for public inbound traffic. The dashboard is editable and integrates with a JSON datasource for real-time data retrieval.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 19

{

"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [],
"targetBlank": true,
"title": "DigitalOcean Console",
"tooltip": "Open the DigitalOcean Console",
"type": "link",
"url": "https://cloud.digitalocean.com/networking"
}
],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"panels": [],
"title": "Network Overview",
"type": "row"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue"
}
]
},
"unit": "bps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 1
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Total Inbound"
}
],
"method": "GET",
"queryParams": "host_id=$
{droplet_id:text}&interface=public&direction=inbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Total Outbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id:text}&interface=public&direction=outbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "B",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Private Inbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id:text}&interface=private&direction=inbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "C",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Private Outbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id:text}&interface=private&direction=outbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "D",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Current Bandwidth Usage",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 3,
"panels": [],
"title": "Public Network Traffic",
"type": "row"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Bandwidth",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "inbound"
},
"properties": [
{
"id": "displayName",
"value": "Inbound"
},
{
"id": "color",
"value": {
"fixedColor": "#3B82F6",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "outbound"
},
"properties": [
{
"id": "displayName",
"value": "Outbound"
},
{
"id": "color",
"value": {
"fixedColor": "#10B981",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 10
},
"id": 4,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": "inbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": "outbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=outbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "B",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Public Network Traffic",
"type": "timeseries"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#3B82F6"
},
{
"color": "#10B981",
"value": 20
},
{
"color": "#F59E0B",
"value": 50
},
{
"color": "#EF4444",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 19
},
"id": 5,
"options": {
"bucketOffset": 0,
"calculate": true,
"calculation": {
"xBuckets": {
"mode": "size",
"value": "10"
}
},
"cellGap": 1,
"cellValues": {
"decimals": 0,
"unit": "bps"
},
"color": {
"exponent": 0.5,
"fill": "#b4b4b4",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Blues",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false,
"unit": "bps"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": ""
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Public Inbound Traffic Heatmap",
"type": "heatmap"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineWidth": 1
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#3B82F6"
},
{
"color": "#10B981",
"value": 20
},
{
"color": "#F59E0B",
"value": 50
},
{
"color": "#EF4444",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 19
},
"id": 6,
"options": {
"bucketOffset": 0,
"calculate": true,
"calculation": {
"xBuckets": {
"mode": "size",
"value": "10"
}
},
"cellGap": 1,
"cellValues": {
"decimals": 0,
"unit": "bps"
},
"color": {
"exponent": 0.5,
"fill": "#b4b4b4",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Greens",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false,
"unit": "bps"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": ""
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=outbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Public Outbound Traffic Heatmap",
"type": "heatmap"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 27
},
"id": 7,
"panels": [],
"title": "Private Network Traffic",
"type": "row"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Bandwidth",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "inbound"
},
"properties": [
{
"id": "displayName",
"value": "Inbound"
},
{
"id": "color",
"value": {
"fixedColor": "#A78BFA",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "outbound"
},
"properties": [
{
"id": "displayName",
"value": "Outbound"
},
{
"id": "color",
"value": {
"fixedColor": "#FBBF24",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 28
},
"id": 8,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": "inbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=private&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$.data.result[*]",
"language": "jsonata",
"name": "outbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=private&direction=outbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "B",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Private Network Traffic",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 37
},
"id": 9,
"panels": [],
"title": "Traffic Analysis",
"type": "row"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [],
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Public"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#3B82F6",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Private"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#A78BFA",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 38
},
"id": 10,
"options": {
"displayLabels": [
"name",
"value",
"percent"
],
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"sum"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Public"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Public"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=outbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "B",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Private"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=private&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "C",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Private"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=private&direction=outbound&start=$
{__from:date:seconds}&end=${__to:date:seconds}",
"refId": "D",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
}
],
"title": "Public vs Private Network Traffic",
"type": "piechart"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [],
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Inbound"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#3B82F6",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Outbound"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#10B981",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 38
},
"id": 11,
"options": {
"displayLabels": [
"name",
"value",
"percent"
],
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"sum"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"cacheDurationSeconds": 60,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "${DS_DIGITALOCEAN}"
},
"fields": [
{
"jsonPath": "$sum($.data.result[*].values[*][1])",
"language": "jsonata",
"name": "Inbound"
}
],
"hide": false,
"method": "GET",
"queryParams": "host_id=$
{droplet_id}&interface=public&direction=inbound&start=${__from:date:seconds}&end=$
{__to:date:seconds}",
"refId": "A",
"urlPath": "/v2/monitoring/metrics/droplet/bandwidth"
},
{
"cacheDurationSeconds":

You might also like