grafana: add usteer dashboard

This commit is contained in:
Astro 2023-11-10 20:00:18 +01:00
parent 29ef560669
commit 94d91a908f
1 changed files with 587 additions and 0 deletions

View File

@ -0,0 +1,587 @@
{
"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,
"id": 369,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 100,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/.*wlan2-.*/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/.*wlan5-.*/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-blue",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_host $tag_instance",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"type::tag"
],
"type": "tag"
},
{
"params": [
"type_instance::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "usteer_local_info_value",
"orderByTime": "ASC",
"policy": "30d",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"condition": "AND",
"key": "type::tag",
"operator": "=",
"value": "stations"
},
{
"condition": "AND",
"key": "type_instance::tag",
"operator": "=",
"value": "n_assoc"
}
]
}
],
"title": "usteer stations",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 9
},
"id": 3,
"maxDataPoints": 400,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_host $tag_instance",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"type::tag"
],
"type": "tag"
},
{
"params": [
"type_instance::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "usteer_local_info_value",
"orderByTime": "ASC",
"policy": "30d",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "non_negative_difference"
}
]
],
"tags": [
{
"condition": "AND",
"key": "type::tag",
"operator": "=",
"value": "stations"
},
{
"condition": "AND",
"key": "type_instance::tag",
"operator": "=",
"value": "load"
}
]
}
],
"title": "usteer load",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/.*roam_target/"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 18
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_host $tag_instance $tag_type_instance",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"type::tag"
],
"type": "tag"
},
{
"params": [
"type_instance::tag"
],
"type": "tag"
},
{
"params": [
"instance::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "usteer_local_info_value",
"orderByTime": "ASC",
"policy": "30d",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [],
"type": "non_negative_difference"
}
]
],
"tags": [
{
"condition": "AND",
"key": "type::tag",
"operator": "=",
"value": "transitions"
}
]
}
],
"title": "usteer transitions",
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "usteer",
"uid": "a8fa674f-82e4-4f3f-801d-31f3ac3efa7e",
"version": 4,
"weekStart": ""
}