graph changes

This commit is contained in:
m0duspwnens
2021-11-01 14:36:41 -04:00
parent b63b50d98c
commit 8857fca797
4 changed files with 234 additions and 93 deletions

View File

@@ -1388,10 +1388,10 @@ grafana:
w: 4 w: 4
monitor_interface_traffic_stat: monitor_interface_traffic_stat:
gridPos: gridPos:
x: 8 x: 0
y: 5 y: 5
h: 4 h: 4
w: 4 w: 12
zeek_packet_loss_stat: zeek_packet_loss_stat:
gridPos: gridPos:
x: 12 x: 12

View File

@@ -87,6 +87,8 @@
"legend": { "legend": {
"displayMode": "table", "displayMode": "table",
"placement": "right", "placement": "right",
"sort": "lastNotNull",
"sortDesc": false,
"calcs": [ "calcs": [
"max", "max",
"mean", "mean",

View File

@@ -146,3 +146,156 @@
"decimals": 1, "decimals": 1,
"description": "" "description": ""
} }
{
"id": 69016,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 1
},
"type": "timeseries",
"title": "System Uptime",
"datasource": "InfluxDB",
"pluginVersion": "8.2.1",
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"barAlignment": 0,
"lineWidth": 1,
"fillOpacity": 0,
"gradientMode": "none",
"spanNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisPlacement": "auto",
"axisLabel": "",
"scaleDistribution": {
"type": "linear"
},
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
},
"thresholdsStyle": {
"mode": "off"
}
},
"color": {
"mode": "palette-classic"
},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"mappings": [],
"unit": "s",
"decimals": 1,
"min": 0,
"max": 604800
},
"overrides": []
},
"options": {
"tooltip": {
"mode": "single"
},
"legend": {
"displayMode": "table",
"placement": "right",
"sort": "lastNotNull",
"sortDesc": false,
"calcs": [
"lastNotNull"
]
}
},
"targets": [
{
"alias": "$tag_host $tag_role",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"role"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "system",
"orderByTime": "ASC",
"policy": "default",
"queryType": "randomWalk",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"uptime"
],
"type": "field"
},
{
"params": [],
"type": "last"
}
]
],
"tags": [
{
"key": "host",
"operator": "=~",
"value": "/^$servername$/"
}
]
}
],
"description": "",
"timeFrom": null,
"timeShift": null,
"interval": "30"
}

View File

@@ -1,43 +1,29 @@
{ {
"aliasColors": {}, "id": 68896,
"dashLength": 10,
"datasource": "InfluxDB",
"decimals": 1,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": { "gridPos": {
"x": {{ PANELS.uptime_docker_combined_current_graph.gridPos.x }}, "x": {{ PANELS.uptime_docker_combined_current_graph.gridPos.x }},
"y": {{ PANELS.uptime_docker_combined_current_graph.gridPos.y }}, "y": {{ PANELS.uptime_docker_combined_current_graph.gridPos.y }},
"w": {{ PANELS.uptime_docker_combined_current_graph.gridPos.w }}, "w": {{ PANELS.uptime_docker_combined_current_graph.gridPos.w }},
"h": {{ PANELS.uptime_docker_combined_current_graph.gridPos.h }} "h": {{ PANELS.uptime_docker_combined_current_graph.gridPos.h }}
}, },
"id": 68896, "type": "timeseries",
"legend": { "title": "Container Uptime Current",
"alignAsTable": true, "datasource": "InfluxDB",
"avg": false, "pluginVersion": "8.2.1",
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"sort": "current",
"sortDesc": false,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "connected",
"options": { "options": {
"alertThreshold": true "tooltip": {
"mode": "single"
},
"legend": {
"displayMode": "table",
"placement": "right",
"sort": "lastNotNull",
"sortDesc": false,
"calcs": [
"lastNotNull"
]
}
}, },
"pluginVersion": "7.5.4",
"pointradius": 2,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"targets": [ "targets": [
{ {
"alias": "$tag_host $tag_role $tag_container_name", "alias": "$tag_host $tag_role $tag_container_name",
@@ -55,16 +41,16 @@
"type": "tag" "type": "tag"
}, },
{ {
"type": "tag",
"params": [ "params": [
"host" "host"
] ],
"type": "tag"
}, },
{ {
"type": "tag",
"params": [ "params": [
"role" "role"
] ],
"type": "tag"
}, },
{ {
"params": [ "params": [
@@ -73,6 +59,7 @@
"type": "fill" "type": "fill"
} }
], ],
"limit": "",
"measurement": "docker_container_status", "measurement": "docker_container_status",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
@@ -84,17 +71,18 @@
"select": [ "select": [
[ [
{ {
"type": "field",
"params": [ "params": [
"uptime_ns" "uptime_ns"
] ],
"type": "field"
}, },
{ {
"type": "last", "params": [],
"params": [] "type": "last"
} }
] ]
], ],
"slimit": "",
"tags": [ "tags": [
{ {
"key": "host", "key": "host",
@@ -107,62 +95,60 @@
"operator": "=~", "operator": "=~",
"value": "/^$containers$/" "value": "/^$containers$/"
} }
], ]
"slimit": "",
"limit": ""
} }
], ],
"thresholds": [], "fieldConfig": {
"timeRegions": [], "defaults": {
"title": "Container Uptime Current", "custom": {
"tooltip": { "drawStyle": "line",
"shared": true, "lineInterpolation": "linear",
"sort": 1, "barAlignment": 0,
"value_type": "individual" "lineWidth": 1,
}, "fillOpacity": 0,
"type": "graph", "gradientMode": "none",
"xaxis": { "spanNulls": false,
"buckets": null, "showPoints": "never",
"mode": "time", "pointSize": 5,
"name": null, "stacking": {
"show": true, "mode": "none",
"values": [] "group": "A"
}, },
"yaxes": [ "axisPlacement": "auto",
{ "axisLabel": "",
"$$hashKey": "object:192", "scaleDistribution": {
"format": "ns", "type": "linear"
"label": null, },
"logBase": 1, "hideFrom": {
"max": "604800000000000", "tooltip": false,
"min": "0", "viz": false,
"show": true, "legend": false
"decimals": 1 },
"thresholdsStyle": {
"mode": "off"
}
},
"color": {
"mode": "palette-classic"
},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"mappings": [],
"unit": "ns",
"decimals": 1,
"min": 0,
"max": 604800000000000
}, },
{ "overrides": []
"$$hashKey": "object:193",
"decimals": 2,
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}, },
"bars": false, "interval": "30s",
"dashes": false,
"fill": 0,
"fillGradient": 0,
"hiddenSeries": false,
"percentage": false,
"points": false,
"stack": false,
"steppedLine": false,
"timeFrom": null, "timeFrom": null,
"timeShift": null "timeShift": null
} }