From f5bb0ecf813bbb1ba6cefa37ceb73c4315c10e0f Mon Sep 17 00:00:00 2001 From: jabertwo <git@jabertwo.de> Date: Sat, 1 Jun 2024 15:53:17 +0200 Subject: [PATCH] grafanaaaaaa test service --- testserver/docker_grafana/tasks/main.yml | 43 +- .../templates/docker-compose.yml | 1 - .../docker_grafana/templates/grafana.ini | 2 +- .../provisioning/dashboards/dashboards.yml | 25 - .../dashboards/pixelflut/breakwater.json | 1055 ----------------- .../provisioning/datasources/datasources.yml | 47 - 6 files changed, 13 insertions(+), 1160 deletions(-) delete mode 100644 testserver/docker_grafana/templates/provisioning/dashboards/dashboards.yml delete mode 100644 testserver/docker_grafana/templates/provisioning/dashboards/pixelflut/breakwater.json delete mode 100644 testserver/docker_grafana/templates/provisioning/datasources/datasources.yml diff --git a/testserver/docker_grafana/tasks/main.yml b/testserver/docker_grafana/tasks/main.yml index 819188dc..2cfccfda 100644 --- a/testserver/docker_grafana/tasks/main.yml +++ b/testserver/docker_grafana/tasks/main.yml @@ -2,50 +2,31 @@ - include_tasks: ../functions/get_secret.yml with_items: - - { path: "{{ basedir }}/grafana_admin_pass", length: 12 } - - { path: "/srv/mqtt/influxdb_token", length: -1 } + - { path: "{{ basedir }}/secrets/grafana_admin_pass", length: 12 } +# - { path: "/srv/mqtt/influxdb_token", length: -1 } - name: create folder struct for grafana - file: + ansible.builtin.file: path: "{{ item }}" state: "directory" with_items: - "{{ basedir }}" - - "{{ basedir }}/data/" - - "{{ basedir }}/provisioning/" - - "{{ basedir }}/provisioning/dashboards/" - - "{{ basedir }}/provisioning/dashboards/pixelflut/" - - "{{ basedir }}/provisioning/datasources/" + - "{{ basedir }}/secrets/" -- name: create config filess - template: +- name: create folder data/ with permissions 777 + ansible.builtin.file: + path: "{{ basedir }}/data/" + state: directory + mode: '777' + +- name: create config files + ansible.builtin.template: src: "{{ item }}" dest: "{{ basedir }}/{{ item }}" with_items: - docker-compose.yml - grafana.ini -- name: create dashboards - template: - src: "provisioning/dashboards/{{ item }}" - dest: "{{ basedir }}/provisioning/dashboards/{{ item }}" - with_items: - - dashboards.yml - -- name: create dashboards for pixelflut - template: - src: "provisioning/dashboards/pixelflut/{{ item }}" - dest: "{{ basedir }}/provisioning/dashboards/pixelflut/{{ item }}" - with_items: - - breakwater.json - -- name: create datasources - template: - src: "provisioning/datasources/{{ item }}" - dest: "{{ basedir }}/provisioning/datasources/{{ item }}" - with_items: - - datasources.yml - - name: start grafana docker community.docker.docker_compose_v2: project_src: "{{ basedir }}" diff --git a/testserver/docker_grafana/templates/docker-compose.yml b/testserver/docker_grafana/templates/docker-compose.yml index a79f6d21..ff4e34c0 100644 --- a/testserver/docker_grafana/templates/docker-compose.yml +++ b/testserver/docker_grafana/templates/docker-compose.yml @@ -6,7 +6,6 @@ services: restart: always volumes: - "{{ basedir }}/grafana.ini:/etc/grafana/grafana.ini" - - "{{ basedir }}/provisioning/:/etc/grafana/provisioning/" - "{{ basedir }}/data/:/var/lib/grafana" environment: GF_SERVER_ROOT_URL: "https://{{ domain }}" diff --git a/testserver/docker_grafana/templates/grafana.ini b/testserver/docker_grafana/templates/grafana.ini index 03f42535..7fa96d17 100644 --- a/testserver/docker_grafana/templates/grafana.ini +++ b/testserver/docker_grafana/templates/grafana.ini @@ -122,7 +122,7 @@ default_theme = dark disable_login_form = false # Auto Login via OAuth -# oauth_auto_login = true +oauth_auto_login = true # Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false ;disable_signout_menu = false diff --git a/testserver/docker_grafana/templates/provisioning/dashboards/dashboards.yml b/testserver/docker_grafana/templates/provisioning/dashboards/dashboards.yml deleted file mode 100644 index 45bfb06d..00000000 --- a/testserver/docker_grafana/templates/provisioning/dashboards/dashboards.yml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: 1 - -providers: - # <string> an unique provider name -- name: 'Pixelflut' - # <int> org id. will default to orgId 1 if not specified - # orgId: 1 - # <string, required> name of the dashboard folder. Required - folder: 'Pixelflut' - # <string> folder UID. will be automatically generated if not specified - # folderUid: '' - # <string, required> provider type. Required - type: file - # <bool> disable dashboard deletion - # disableDeletion: false - # <bool> enable dashboard editing - editable: true - # <int> how often Grafana will scan for changed dashboards - updateIntervalSeconds: 10 - # <bool> allow updating provisioned dashboards from the UI - allowUiUpdates: true - options: - # <string, required> path to dashboard files on disk. Required - path: /etc/grafana/provisioning/dashboards/pixelflut - diff --git a/testserver/docker_grafana/templates/provisioning/dashboards/pixelflut/breakwater.json b/testserver/docker_grafana/templates/provisioning/dashboards/pixelflut/breakwater.json deleted file mode 100644 index 5eebc771..00000000 --- a/testserver/docker_grafana/templates/provisioning/dashboards/pixelflut/breakwater.json +++ /dev/null @@ -1,1055 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- 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": 1, - "id": 6, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 0, - "y": 0 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_ips", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Connected IPs", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 3, - "y": 0 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "sum(breakwater_connections) or vector(0)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Connections", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 25 - } - ] - }, - "unit": "FPS" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 9, - "y": 0 - }, - "id": 15, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_fps", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "FPS", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binbps" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 12, - "y": 0 - }, - "id": 19, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "sum(rate(breakwater_bytes[1m])) * 8 or vector(0)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Throughput", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 15, - "y": 0 - }, - "id": 9, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "sum(breakwater_bytes) or vector(0)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Total Traffic", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 18, - "y": 0 - }, - "id": 16, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "sum(rate(breakwater_pixels[1m])) * 8 or vector(0)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Pixels / s", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 21, - "y": 0 - }, - "id": 17, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "sum(breakwater_pixels) or vector(0)", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "title": "Total Pixels", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "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": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "IPv4" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "yellow", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "All" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "green", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 5 - }, - "id": 13, - "options": { - "legend": { - "calcs": [ - "last", - "max" - ], - "displayMode": "table", - "placement": "right" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_ips", - "interval": "", - "legendFormat": "All", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_legacy_ips", - "hide": false, - "interval": "", - "legendFormat": "IPv4", - "refId": "B" - } - ], - "title": "Connected IPs", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 5 - }, - "id": 14, - "interval": "1m", - "options": { - "legend": { - "calcs": [ - "last", - "max" - ], - "displayMode": "table", - "placement": "right", - "sortBy": "Last", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "rate(breakwater_bytes[$__interval]) * 8", - "interval": "", - "legendFormat": "pixelflut.warpzone.lan", - "refId": "A" - } - ], - "title": "Traffic / IP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 13 - }, - "id": 11, - "options": { - "legend": { - "calcs": [ - "last", - "max" - ], - "displayMode": "table", - "placement": "right", - "sortBy": "Last", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_connections", - "interval": "", - "legendFormat": "pixelflut.warpzone.lan", - "refId": "A" - } - ], - "title": "Connections / IP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "reqps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 13 - }, - "id": 18, - "interval": "1m", - "options": { - "legend": { - "calcs": [ - "last", - "max" - ], - "displayMode": "table", - "placement": "right", - "sortBy": "Last", - "sortDesc": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "rate(breakwater_pixels[$__interval]) * 8", - "interval": "", - "legendFormat": "pixelflut.warpzone.lan", - "refId": "A" - } - ], - "title": "Pixels / s / IP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "thresholds" - }, - "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": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 25 - } - ] - }, - "unit": "FPS" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "30 FPS" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-green", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 21 - }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.6", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "breakwater_fps{}", - "interval": "", - "legendFormat": "Measured", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "P0FAC05DE14135586" - }, - "exemplar": true, - "expr": "30", - "hide": false, - "interval": "", - "legendFormat": "30 FPS", - "refId": "B" - } - ], - "title": "FPS", - "type": "timeseries" - } - ], - "refresh": false, - "schemaVersion": 35, - "style": "dark", - "tags": [ - "pixelflut", - "breakwater" - ], - "templating": { - "list": [] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Pixelflut overview", - "uid": "bfgb09843", - "weekStart": "" -} diff --git a/testserver/docker_grafana/templates/provisioning/datasources/datasources.yml b/testserver/docker_grafana/templates/provisioning/datasources/datasources.yml deleted file mode 100644 index 8e9cb3f4..00000000 --- a/testserver/docker_grafana/templates/provisioning/datasources/datasources.yml +++ /dev/null @@ -1,47 +0,0 @@ - -apiVersion: 1 - -datasources: - - - name: MQTT_Flux - type: influxdb - access: proxy - url: http://{{ int_ip4 }}:{{ mqtt_influxdb_port }} - jsonData: - version: Flux - organization: mqtt - defaultBucket: mqtt - tlsSkipVerify: true - secureJsonData: - token: {{ influxdb_token }} - - - name: MQTT_InfluxQL - type: influxdb - access: proxy - url: http://{{ int_ip4 }}:{{ mqtt_influxdb_port }} - # This database should be mapped to a bucket - database: mqtt - jsonData: - httpMode: GET - httpHeaderName1: 'Authorization' - secureJsonData: - httpHeaderValue1: 'Token {{ influxdb_token }}' - -{% if inventory_hostname == 'hix' %} - - - name: Prometheus - type: prometheus - access: proxy - url: http://{{ int_ip4 }}:9090 - -{% endif %} - -{% if inventory_hostname == 'ogg' %} - - - name: Pixelflut - type: prometheus - access: proxy - url: http://pixelflut.warpzone.lan:9090 - uuid: P0FAC05DE14135586 - -{% endif %} -- GitLab