331 lines
9.7 KiB
JSON
331 lines
9.7 KiB
JSON
|
|
{
|
||
|
|
"__inputs": [
|
||
|
|
{
|
||
|
|
"name": "DS_PROMETHEUS",
|
||
|
|
"label": "Prometheus",
|
||
|
|
"description": "",
|
||
|
|
"type": "datasource",
|
||
|
|
"pluginId": "prometheus",
|
||
|
|
"pluginName": "Prometheus"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"__elements": {},
|
||
|
|
"__requires": [
|
||
|
|
{
|
||
|
|
"type": "grafana",
|
||
|
|
"id": "grafana",
|
||
|
|
"name": "Grafana",
|
||
|
|
"version": "11.1.0"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "datasource",
|
||
|
|
"id": "prometheus",
|
||
|
|
"name": "Prometheus",
|
||
|
|
"version": "1.0.0"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "panel",
|
||
|
|
"id": "table",
|
||
|
|
"name": "Table",
|
||
|
|
"version": ""
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"annotations": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"builtIn": 1,
|
||
|
|
"datasource": {
|
||
|
|
"type": "grafana",
|
||
|
|
"uid": "grafana"
|
||
|
|
},
|
||
|
|
"enable": true,
|
||
|
|
"hide": true,
|
||
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||
|
|
"name": "Annotations & Alerts",
|
||
|
|
"type": "dashboard"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"description": "Server Resource Dashboard",
|
||
|
|
"editable": true,
|
||
|
|
"fiscalYearStartMonth": 0,
|
||
|
|
"graphTooltip": 0,
|
||
|
|
"id": null,
|
||
|
|
"links": [],
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"datasource": {
|
||
|
|
"type": "prometheus",
|
||
|
|
"uid": "prometheus_ds"
|
||
|
|
},
|
||
|
|
"description": "",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"align": "auto",
|
||
|
|
"cellOptions": {
|
||
|
|
"type": "auto"
|
||
|
|
},
|
||
|
|
"filterable": false
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": 80
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"overrides": [
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Hostname"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "custom.align",
|
||
|
|
"value": "left"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "IP"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "custom.align",
|
||
|
|
"value": "left"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "CPU used%"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "percent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "custom.cellOptions",
|
||
|
|
"value": {
|
||
|
|
"type": "gauge",
|
||
|
|
"mode": "gradient"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "thresholds",
|
||
|
|
"value": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "#73BF69", "value": null },
|
||
|
|
{ "color": "#F2CC0C", "value": 70 },
|
||
|
|
{ "color": "#F2495C", "value": 80 }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "min",
|
||
|
|
"value": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "max",
|
||
|
|
"value": 100
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Memory used%"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "percent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "custom.cellOptions",
|
||
|
|
"value": {
|
||
|
|
"type": "gauge",
|
||
|
|
"mode": "gradient"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "thresholds",
|
||
|
|
"value": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "#73BF69", "value": null },
|
||
|
|
{ "color": "#F2CC0C", "value": 70 },
|
||
|
|
{ "color": "#F2495C", "value": 80 }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "min",
|
||
|
|
"value": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "max",
|
||
|
|
"value": 100
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Disk used"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "percent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "custom.cellOptions",
|
||
|
|
"value": {
|
||
|
|
"type": "gauge",
|
||
|
|
"mode": "gradient"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "thresholds",
|
||
|
|
"value": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "#73BF69", "value": null },
|
||
|
|
{ "color": "#F2CC0C", "value": 70 },
|
||
|
|
{ "color": "#F2495C", "value": 80 }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "min",
|
||
|
|
"value": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "max",
|
||
|
|
"value": 100
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Uptime"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "dtdurations"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Download"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "bps"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "Upload"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "bps"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"gridPos": { "h": 24, "w": 24, "x": 0, "y": 0 },
|
||
|
|
"id": 1,
|
||
|
|
"options": {
|
||
|
|
"cellHeight": "sm",
|
||
|
|
"footer": { "show": false },
|
||
|
|
"showHeader": true
|
||
|
|
},
|
||
|
|
"pluginVersion": "11.1.0",
|
||
|
|
"targets": [
|
||
|
|
{ "refId": "A", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "node_uname_info{job=~\"$job\"}", "format": "table", "instant": true, "legendFormat": "Hostname" },
|
||
|
|
{ "refId": "B", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "100 - (avg by(hostname) (rate(node_cpu_seconds_total{mode=\"idle\", job=~\"$job\"}[$interval])) * 100)", "format": "table", "instant": true, "legendFormat": "CPU used%" },
|
||
|
|
{ "refId": "C", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "(1 - (node_memory_MemAvailable_bytes{job=~\"$job\"} / node_memory_MemTotal_bytes{job=~\"$job\"})) * 100", "format": "table", "instant": true, "legendFormat": "Memory used%" },
|
||
|
|
{ "refId": "D", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "(1 - (node_filesystem_avail_bytes{mountpoint=~\"/|/data\", job=~\"$job\"} / node_filesystem_size_bytes{mountpoint=~\"/|/data\", job=~\"$job\"})) * 100", "format": "table", "instant": true, "legendFormat": "Disk used" },
|
||
|
|
{ "refId": "E", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "time() - node_boot_time_seconds{job=~\"$job\"}", "format": "table", "instant": true, "legendFormat": "Uptime" },
|
||
|
|
{ "refId": "F", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "sum by (hostname) (rate(node_network_receive_bytes_total{job=~\"$job\"}[$interval])) * 8", "format": "table", "instant": true, "legendFormat": "Download" },
|
||
|
|
{ "refId": "G", "datasource": { "type": "prometheus", "uid": "prometheus_ds" }, "expr": "sum by (hostname) (rate(node_network_transmit_bytes_total{job=~\"$job\"}[$interval])) * 8", "format": "table", "instant": true, "legendFormat": "Upload" }
|
||
|
|
],
|
||
|
|
"transformations": [
|
||
|
|
{ "id": "merge", "options": {} },
|
||
|
|
{ "id": "organize", "options": { "indexByName": {}, "renameByName": { "Value #A": "Hostname", "Value #B": "CPU used%", "Value #C": "Memory used%", "Value #D": "Disk used", "Value #E": "Uptime", "Value #F": "Download", "Value #G": "Upload", "instance": "IP" } } }
|
||
|
|
],
|
||
|
|
"type": "table"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"refresh": "1m",
|
||
|
|
"schemaVersion": 39,
|
||
|
|
"tags": ["command-center", "overview"],
|
||
|
|
"templating": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"current": { "selected": true, "text": "common_servers", "value": "common_servers" },
|
||
|
|
"hide": 0,
|
||
|
|
"includeAll": false,
|
||
|
|
"multi": false,
|
||
|
|
"name": "job",
|
||
|
|
"options": [
|
||
|
|
{ "selected": true, "text": "common_servers", "value": "common_servers" },
|
||
|
|
{ "selected": false, "text": "game_servers", "value": "game_servers" }
|
||
|
|
],
|
||
|
|
"query": "common_servers,game_servers",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"type": "custom"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"current": { "selected": true, "text": "1m", "value": "1m" },
|
||
|
|
"hide": 0,
|
||
|
|
"name": "interval",
|
||
|
|
"options": [
|
||
|
|
{ "selected": false, "text": "30s", "value": "30s" },
|
||
|
|
{ "selected": true, "text": "1m", "value": "1m" },
|
||
|
|
{ "selected": false, "text": "5m", "value": "5m" }
|
||
|
|
],
|
||
|
|
"query": "30s,1m,5m",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"type": "interval"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"time": { "from": "now-1h", "to": "now" },
|
||
|
|
"timepicker": {},
|
||
|
|
"timezone": "browser",
|
||
|
|
"title": "Server Overview",
|
||
|
|
"uid": "server-overview-dashboard",
|
||
|
|
"version": 1,
|
||
|
|
"weekStart": ""
|
||
|
|
}
|