Skip to content
Snippets Groups Projects
Commit ca1fbd91 authored by Jan David Mol's avatar Jan David Mol
Browse files

Added generic point browser

parent 6ba12879
No related branches found
No related tags found
No related merge requests found
Pipeline #51181 passed
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"station"
],
"targetBlank": false,
"title": "Dashboards",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"liveNow": false,
"panels": [
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 7,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bool"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 1
},
"id": 9,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "device_attribute{host=\"$station\",name=\"Status\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "device_attribute{host=\"$station\",name=\"connected_R\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
}
],
"title": "Device status",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "device",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": false,
"Time 1": true,
"Time 2": true,
"Value": true,
"Value #A": true,
"__name__": true,
"__name__ 1": true,
"__name__ 2": true,
"host 1": true,
"host 2": true,
"idx": true,
"idx 1": true,
"idx 2": true,
"instance": true,
"instance 1": true,
"instance 2": true,
"job": true,
"job 1": true,
"job 2": true,
"name": true,
"name 1": true,
"name 2": true,
"station": true,
"station 1": true,
"station 2": true,
"type": true,
"type 1": true,
"type 2": true,
"x": true,
"x 1": true,
"x 2": true,
"y": true,
"y 1": true,
"y 2": true
},
"indexByName": {
"Time 1": 3,
"Time 2": 14,
"Value #A": 13,
"Value #B": 25,
"__name__ 1": 4,
"__name__ 2": 15,
"device": 1,
"host 1": 0,
"host 2": 16,
"idx 1": 5,
"idx 2": 17,
"instance 1": 6,
"instance 2": 18,
"job 1": 7,
"job 2": 19,
"name 1": 8,
"name 2": 20,
"station 1": 9,
"station 2": 21,
"str_value": 2,
"type 1": 10,
"type 2": 22,
"x 1": 11,
"x 2": 23,
"y 1": 12,
"y 2": 24
},
"renameByName": {
"Time 1": "",
"Value #B": "connected",
"str_value": "Status"
}
}
}
],
"type": "table"
}
],
"title": "Station devices",
"type": "row"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 1
},
"id": 5,
"panels": [],
"title": "Point browser",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"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": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 2
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "device_attribute{host=\"$station\",device=\"$device\",name=\"$attribute\"}",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Time series ($attribute)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto",
"filterable": false,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "x"
},
"properties": [
{
"id": "custom.width",
"value": 50
}
]
},
{
"matcher": {
"id": "byName",
"options": "y"
},
"properties": [
{
"id": "custom.width",
"value": 50
}
]
},
{
"matcher": {
"id": "byName",
"options": "host"
},
"properties": [
{
"id": "custom.width",
"value": 150
}
]
},
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "custom.width",
"value": 150
}
]
},
{
"matcher": {
"id": "byName",
"options": "device"
},
"properties": [
{
"id": "custom.width",
"value": 200
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 13
},
"id": 3,
"options": {
"footer": {
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "9.3.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"exemplar": false,
"expr": "device_attribute{host=\"$station\",device=\"$device\",name=\"$attribute\"}",
"format": "time_series",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Last values ($attribute)",
"transformations": [
{
"id": "labelsToFields",
"options": {
"keepLabels": [
"device",
"host",
"name",
"x",
"y",
"str_value"
]
}
},
{
"id": "organize",
"options": {
"excludeByName": {},
"indexByName": {
"Time": 0,
"device": 2,
"host": 1,
"name": 3,
"x": 4,
"y": 5,
"{__name__=\"device_attribute\", device=\"stat/ec/1\", host=\"localhost\", idx=\"000\", instance=\"tango-prometheus-exporter:8000\", job=\"tango\", name=\"Control_Relais_48V_RW\", station=\"DevStation\", type=\"bool\", x=\"00\", y=\"00\"}": 6
},
"renameByName": {}
}
}
],
"type": "table"
}
],
"schemaVersion": 37,
"style": "dark",
"tags": [
"station"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "localhost",
"value": "localhost"
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"definition": "scrape_series_added\n",
"hide": 0,
"includeAll": false,
"label": "Station",
"multi": false,
"name": "station",
"options": [],
"query": {
"query": "scrape_series_added\n",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/.*host=\"(?<text>[^\"]*)\".*/",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"selected": true,
"text": "stat/ec/1",
"value": "stat/ec/1"
},
"definition": "device_attribute{host=\"$station\"}",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "device",
"options": [],
"query": {
"query": "device_attribute{host=\"$station\"}",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/device=\"(?<text>[^\"]+)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": "Temperature_Cab0_0_R",
"value": "Temperature_Cab0_0_R"
},
"definition": "device_attribute{host=\"$station\",device=\"$device\"}",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "attribute",
"options": [],
"query": {
"query": "device_attribute{host=\"$station\",device=\"$device\"}",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "/name=\"(?<text>[^\"]+)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Point browser",
"uid": "browser",
"version": 1,
"weekStart": ""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment