From a7c78a6c5722af32e92e9eb0cad86ae26009e785 Mon Sep 17 00:00:00 2001 From: Sven Holz Date: Tue, 14 Jun 2022 00:42:34 +0200 Subject: [PATCH] changes to README --- .../examples/latency-monitor-dashbord.json | 138 ++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 grafana/examples/latency-monitor-dashbord.json diff --git a/grafana/examples/latency-monitor-dashbord.json b/grafana/examples/latency-monitor-dashbord.json new file mode 100644 index 0000000..0fde444 --- /dev/null +++ b/grafana/examples/latency-monitor-dashbord.json @@ -0,0 +1,138 @@ +{ + "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, + "id": 1, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "P841FAA16E3FB7A6E" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "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": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 26, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "logmin", + "mean", + "max", + "range" + ], + "displayMode": "table", + "placement": "right" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "P841FAA16E3FB7A6E" + }, + "query": "FinalOutput = [\"_field\", \"_time\", \"_value\"]\n\nRawSeries = from(bucket: \"latency\")\n |> range(start: v.timeRangeStart, stop:v.timeRangeStop)\n |> filter(fn: (r) =>\n r._measurement == \"latency_monitor\" and\n r._field == \"latency\"\n )\n\nNamedSeries = RawSeries\n |> map(fn: (r) => ({_value:r._value, _time:r._time, _field:r.host}))\n |> keep(columns:FinalOutput)\n \nNamedSeries |> yield()", + "refId": "A" + } + ], + "title": "Latency-Monitor", + "transparent": true, + "type": "timeseries" + } + ], + "schemaVersion": 36, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Latency-Monitor", + "uid": "hhSdFxC7z", + "version": 1, + "weekStart": "" +} \ No newline at end of file