From 9d75dd13bba5fa019616f07a783e6fc267b5c410 Mon Sep 17 00:00:00 2001 From: Hasan Eroglu Date: Fri, 4 Oct 2024 14:04:44 +0300 Subject: [PATCH] remove infrastructural folders and files Signed-off-by: Hasan Eroglu --- .../http-data-schema-thing-dashboard.json | 1997 ----------------- ...p-express-calculator-simple-dashboard.json | 1019 --------- .../dashboards/mqtt-calculator-dashboard.json | 645 ------ .../provisioning/dashboards/dashboard.yml | 11 - .../provisioning/datasources/datasource.yml | 17 - conf/loki/loki-config.yaml | 49 - conf/prometheus/prometheus.yml | 14 - conf/promtail/promtail-config.yaml | 17 - docker-compose-infra.yml | 185 -- 9 files changed, 3954 deletions(-) delete mode 100644 conf/grafana/dashboards/http-data-schema-thing-dashboard.json delete mode 100644 conf/grafana/dashboards/http-express-calculator-simple-dashboard.json delete mode 100644 conf/grafana/dashboards/mqtt-calculator-dashboard.json delete mode 100644 conf/grafana/provisioning/dashboards/dashboard.yml delete mode 100644 conf/grafana/provisioning/datasources/datasource.yml delete mode 100644 conf/loki/loki-config.yaml delete mode 100644 conf/prometheus/prometheus.yml delete mode 100644 conf/promtail/promtail-config.yaml delete mode 100644 docker-compose-infra.yml diff --git a/conf/grafana/dashboards/http-data-schema-thing-dashboard.json b/conf/grafana/dashboards/http-data-schema-thing-dashboard.json deleted file mode 100644 index 1885e28..0000000 --- a/conf/grafana/dashboards/http-data-schema-thing-dashboard.json +++ /dev/null @@ -1,1997 +0,0 @@ -{ - "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": 7, - "links": [], - "panels": [ - { - "datasource": { - "default": true, - "type": "prometheus", - "uid": "adwznwwq8yupse" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": true, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.5, - "drawStyle": "line", - "fillOpacity": 50, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 3, - "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 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "adwznwwq8yupse" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "changes(traefik_service_requests_total{protocol=\"http\", service=\"http-data-schema-thing-test-things@docker\"}[1m])", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "Status Code:{{code}}", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Requests", - "type": "timeseries" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"bool\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"bool\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "boolean", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 0 - }, - "id": 4, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"num\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"num\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 20, - "y": 0 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"array\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"array\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 4 - }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"int\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"int\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 4 - }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"string\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"string\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 20, - "y": 4 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"object\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"object\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 8 - }, - "id": 13, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-void\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-void\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 8 - }, - "id": 14, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-void\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-void\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 3, - "x": 12, - "y": 8 - }, - "id": 23, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["sum"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "editorMode": "code", - "expr": "count_over_time({affordance=\"action\", thing=\"http-data-schema-thing\", op=\"invokeaction\", messageType=\"\"}[$__auto])", - "legendFormat": "{{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "Action Invocation Count", - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 16 - }, - "id": 15, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-int\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-int\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 16 - }, - "id": 16, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-int\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-int\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 24 - }, - "id": 8, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-void\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-void\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 24 - }, - "id": 12, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-void\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-void\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 32 - }, - "id": 10, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-int\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-int\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 32 - }, - "id": 11, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-int\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-int\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 40 - }, - "id": 17, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-string\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-string\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 40 - }, - "id": 18, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"int-string\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"int-string\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 48 - }, - "id": 19, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-obj\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-obj\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 48 - }, - "id": 20, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"void-obj\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"void-obj\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 56 - }, - "id": 21, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"obj-void\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"obj-void\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 56 - }, - "id": 22, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"obj-void\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-data-schema-thing\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"obj-void\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - } - ], - "refresh": "10s", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "HTTP Data Schema Thing", - "uid": "adyul1byyo000b", - "version": 1, - "weekStart": "" -} diff --git a/conf/grafana/dashboards/http-express-calculator-simple-dashboard.json b/conf/grafana/dashboards/http-express-calculator-simple-dashboard.json deleted file mode 100644 index 8d6ec98..0000000 --- a/conf/grafana/dashboards/http-express-calculator-simple-dashboard.json +++ /dev/null @@ -1,1019 +0,0 @@ -{ - "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, - "links": [], - "panels": [ - { - "datasource": { - "default": true, - "type": "prometheus", - "uid": "adwznwwq8yupse" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": true, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.5, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 2, - "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": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "adwznwwq8yupse" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "changes(traefik_service_requests_total{protocol=\"http\", service=\"http-express-calculator-simple-test-things@docker\"}[1m])", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "Status Code:{{code}}", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Requests", - "type": "timeseries" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 0 - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\", affordanceName=\"result\",thing=\"http-express-calculator-simple\", messageType=\"updateProperty\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"result\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 0 - }, - "id": 12, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"lastChange\",thing=\"http-express-calculator-simple\", messageType=\"updateProperty\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"lastChange\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "lastChange", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "lastChange" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 12, - "y": 4 - }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["sum"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "editorMode": "code", - "expr": "count_over_time({affordance=\"action\", thing=\"http-express-calculator-simple\", op=\"invokeaction\", messageType=\"\"}[$__auto])", - "legendFormat": "{{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "Action Invocation Count", - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 15, - "y": 4 - }, - "id": 4, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"event\",affordanceName=\"update\",messageType=\"subscriptionCount\",thing=\"http-express-calculator-simple\"}", - "legendFormat": "Subscribe {{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "event \"update\" Subscription Count", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "Value" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 18, - "y": 4 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"result\",thing=\"http-express-calculator-simple\", messageType=\"observeCount\"}", - "legendFormat": "Observe {{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "propert \"result\" Observe Count", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "Value" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 8 - }, - "id": 5, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"add\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-express-calculator-simple\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"add\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 8 - }, - "id": 9, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"add\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-express-calculator-simple\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"add\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 18, - "y": 10 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"lastChange\",thing=\"http-express-calculator-simple\", messageType=\"observeCount\"}", - "legendFormat": "Observe {{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "property \"lastChange\" Observe Count", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": false, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": {} - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 16 - }, - "id": 10, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"subtract\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"http-express-calculator-simple\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"subtract\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 16 - }, - "id": 11, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"subtract\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"http-express-calculator-simple\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"subtract\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - } - ], - "refresh": "10s", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "HTTP Express Calculator Simple", - "uid": "bdwzocnv714hsd", - "version": 7, - "weekStart": "" -} diff --git a/conf/grafana/dashboards/mqtt-calculator-dashboard.json b/conf/grafana/dashboards/mqtt-calculator-dashboard.json deleted file mode 100644 index 0d98d95..0000000 --- a/conf/grafana/dashboards/mqtt-calculator-dashboard.json +++ /dev/null @@ -1,645 +0,0 @@ -{ - "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": 10, - "links": [], - "panels": [ - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\", affordanceName=\"result\",thing=\"mqtt-calculator\", messageType=\"updateProperty\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"result\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "result", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "result" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "fieldMinMax": false, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 4, - "y": 0 - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["last"], - "fields": "/.*/", - "limit": 5, - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "forward", - "editorMode": "code", - "expr": "{affordance=\"property\",affordanceName=\"lastChange\",thing=\"mqtt-calculator\", messageType=\"updateProperty\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "property \"lastChange\"", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "lastChange", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - }, - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "string", - "targetField": "lastChange" - } - ], - "fields": {} - } - } - ], - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 8, - "y": 0 - }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["sum"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value_and_name", - "wideLayout": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "editorMode": "code", - "expr": "count_over_time({affordance=\"action\", thing=\"mqtt-calculator\", op=\"invokeaction\", messageType=\"\"}[$__auto])", - "legendFormat": "{{affordanceName}}", - "queryType": "range", - "refId": "A", - "step": "" - } - ], - "title": "Action Invocation Count", - "type": "stat" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 4 - }, - "id": 4, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"add\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"mqtt-calculator\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"add\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 4 - }, - "id": 5, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"add\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"mqtt-calculator\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"add\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 12 - }, - "id": 6, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"subtract\",messageType=\"actionInput\",op=\"invokeaction\",thing=\"mqtt-calculator\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"subtract\" Inputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - }, - { - "datasource": { - "default": false, - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 12 - }, - "id": 7, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": ["sum"], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "11.2.0", - "targets": [ - { - "datasource": { - "type": "loki", - "uid": "cdxkxyq1xjmyoc" - }, - "direction": "backward", - "editorMode": "code", - "expr": "{affordance=\"action\",affordanceName=\"subtract\",messageType=\"actionOutput\",op=\"invokeaction\",thing=\"mqtt-calculator\"}", - "queryType": "range", - "refId": "A" - } - ], - "title": "action \"subtract\" Outputs", - "transformations": [ - { - "id": "extractFields", - "options": { - "format": "json", - "jsonPaths": [ - { - "alias": "Value", - "path": "message" - } - ], - "keepTime": true, - "replace": true, - "source": "Line" - } - } - ], - "type": "table" - } - ], - "refresh": "10s", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "MQTT Calculator Thing", - "uid": "adyy7x2gkc6iof", - "version": 1, - "weekStart": "" -} diff --git a/conf/grafana/provisioning/dashboards/dashboard.yml b/conf/grafana/provisioning/dashboards/dashboard.yml deleted file mode 100644 index 57bc72e..0000000 --- a/conf/grafana/provisioning/dashboards/dashboard.yml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: 1 - -providers: - - name: "default" - orgId: 1 - folder: "" - type: file - disableDeletion: false - updateIntervalSeconds: 10 - options: - path: /var/lib/grafana/dashboards diff --git a/conf/grafana/provisioning/datasources/datasource.yml b/conf/grafana/provisioning/datasources/datasource.yml deleted file mode 100644 index a2eb8ee..0000000 --- a/conf/grafana/provisioning/datasources/datasource.yml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: 1 - -datasources: - - name: prometheus-datasource - uid: adwznwwq8yupse # THIS IS IMPORTANT ON THE DASHBOARD MUST BE THE SAME - orgId: 1 - type: prometheus - access: proxy - url: http://prometheus:${PROMETHEUS_PORT} - isDefault: true - - name: loki-datasource - uid: cdxkxyq1xjmyoc # THIS IS IMPORTANT ON THE DASHBOARD MUST BE THE SAME - orgId: 1 - type: loki - access: proxy - url: http://loki:${LOKI_PORT} - isDefault: false diff --git a/conf/loki/loki-config.yaml b/conf/loki/loki-config.yaml deleted file mode 100644 index 6f3ae60..0000000 --- a/conf/loki/loki-config.yaml +++ /dev/null @@ -1,49 +0,0 @@ -auth_enabled: false - -server: - http_listen_port: 3100 - grpc_listen_port: 9096 - -common: - instance_addr: 127.0.0.1 - path_prefix: /tmp/loki - storage: - filesystem: - chunks_directory: /tmp/loki/chunks - rules_directory: /tmp/loki/rules - replication_factor: 1 - ring: - kvstore: - store: inmemory - -query_range: - results_cache: - cache: - embedded_cache: - enabled: true - max_size_mb: 100 - -schema_config: - configs: - - from: 2020-10-24 - store: tsdb - object_store: filesystem - schema: v13 - index: - prefix: index_ - period: 24h -# ruler: -# alertmanager_url: http://localhost:9093 - -# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration -# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/ -# -# Statistics help us better understand how Loki is used, and they show us performance -# levels for most users. This helps us prioritize features and documentation. -# For more information on what's sent, look at -# https://github.com/grafana/loki/blob/main/pkg/analytics/stats.go -# Refer to the buildReport method to see what goes into a report. -# -# If you would like to disable reporting, uncomment the following lines: -#analytics: -# reporting_enabled: false diff --git a/conf/prometheus/prometheus.yml b/conf/prometheus/prometheus.yml deleted file mode 100644 index 8068873..0000000 --- a/conf/prometheus/prometheus.yml +++ /dev/null @@ -1,14 +0,0 @@ -global: - scrape_interval: 10s -scrape_configs: - - job_name: "traefik" - static_configs: - - targets: ["reverse-proxy:8080"] - - - job_name: "prometheus" - static_configs: - - targets: ["prometheus:9090"] - - - job_name: cadvisor - static_configs: - - targets: ["cadvisor:8080"] diff --git a/conf/promtail/promtail-config.yaml b/conf/promtail/promtail-config.yaml deleted file mode 100644 index 9915e09..0000000 --- a/conf/promtail/promtail-config.yaml +++ /dev/null @@ -1,17 +0,0 @@ -server: - http_listen_port: 9080 - grpc_listen_port: 0 - -positions: - filename: /tmp/positions.yaml - -clients: - - url: http://loki:3100/loki/api/v1/push -# scrape_configs: -# - job_name: system -# static_configs: -# - targets: -# - localhost -# labels: -# job: varlogs -# __path__: /var/log/*log diff --git a/docker-compose-infra.yml b/docker-compose-infra.yml deleted file mode 100644 index baa8be5..0000000 --- a/docker-compose-infra.yml +++ /dev/null @@ -1,185 +0,0 @@ -version: "3" -services: - reverse-proxy: - image: traefik:v3.0 - labels: - - traefik.enable=true - - traefik.http.routers.mydashboard.rule=Host(`traefik.${STACK_HOSTNAME}`) - - traefik.http.routers.mydashboard.service=api@internal - - traefik.http.routers.mydashboard.middlewares=test-things-auth - command: - - "--log.level=DEBUG" - - "--api.dashboard=true" - - "--providers.docker=true" - - "--providers.docker.watch" - - "--metrics.prometheus=true" - - "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0" - - "--entrypoints.web.address=:${WEB_PORT_IN}" - - "--entrypoints.modbus-elevator.address=:${MODBUS_ELEVATOR_PORT_IN}" - - "--entrypoints.coap-calculator-simple.address=:${COAP_SIMPLE_PORT_IN}/udp" - - "--entrypoints.coap-calculator-content-negotiation.address=:${COAP_NEGOTIATION_PORT_IN}/udp" - - "--entrypoints.smart-home-smart-clock.address=:${SMART_HOME_SMART_CLOCK_PORT_IN}/udp" - ports: - - "${WEB_PORT_OUT}:${WEB_PORT_IN}" - - "${MODBUS_ELEVATOR_PORT_OUT}:${MODBUS_ELEVATOR_PORT_IN}" - - "${COAP_SIMPLE_PORT_OUT}:${COAP_SIMPLE_PORT_IN}/udp" - - "${COAP_NEGOTIATION_PORT_OUT}:${COAP_NEGOTIATION_PORT_IN}/udp" - - "${SMART_HOME_SMART_CLOCK_PORT_OUT}:${SMART_HOME_SMART_CLOCK_PORT_IN}/udp" - - "${TRAEFIK_DASHBOARD_PORT_OUT}:${TRAEFIK_DASHBOARD_PORT_IN}" - volumes: - # So that Traefik can listen to the Docker events - - /var/run/docker.sock:/var/run/docker.sock - deploy: - resources: - limits: - cpus: "0.08" - memory: 100M - reservations: - cpus: "0.05" - memory: 50M - networks: - - things_network - test-things-auth: - image: thomseddon/traefik-forward-auth:2 - environment: - - DEFAULT_PROVIDER=generic-oauth - - SECRET=${OAUTH_SECRET} - - PROVIDERS_GENERIC_OAUTH_AUTH_URL=${GITHUB_AUTH_URL} - - PROVIDERS_GENERIC_OAUTH_TOKEN_URL=${GITHUB_TOKEN_URL} - - PROVIDERS_GENERIC_OAUTH_USER_URL=${GITHUB_USER_URL} - - PROVIDERS_GENERIC_OAUTH_CLIENT_ID=${GITHUB_CLIENT_ID} - - PROVIDERS_GENERIC_OAUTH_CLIENT_SECRET=${GITHUB_CLIENT_SECRET} - - PROVIDERS_GENERIC_OAUTH_SCOPE=user,repo - - INSECURE_COOKIE=true - - LOG_LEVEL=debug - - WHITELIST=${WHITELISTED_EMAILS} - labels: - - "traefik.http.middlewares.test-things-auth.forwardauth.address=http://test-things-auth:${FORWARD_AUTH_PORT}" - - "traefik.http.middlewares.test-things-auth.forwardauth.authResponseHeaders=X-Forwarded-User" - - "traefik.http.services.test-things-auth.loadbalancer.server.port=${FORWARD_AUTH_PORT}" - networks: - - things_network - prometheus: - image: prom/prometheus - volumes: - - "prometheus_data:/prometheus" - - "${CONFIG_FILEPATH}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml" - labels: - - "traefik.http.routers.prometheus.rule=Host(`prometheus.${STACK_HOSTNAME}`)" - - "traefik.http.routers.prometheus.service=prometheus" - - "traefik.http.routers.prometheus.middlewares=test-things-auth" - - "traefik.http.services.prometheus.loadbalancer.server.port=${PROMETHEUS_PORT}" - deploy: - resources: - limits: - cpus: "0.08" - memory: 200M - reservations: - cpus: "0.05" - memory: 100M - depends_on: - - cadvisor - networks: - - things_network - grafana: - image: grafana/grafana - environment: - - PROMETHEUS_PORT=${PROMETHEUS_PORT} - - GF_SERVER_DOMAIN=grafana.${STACK_HOSTNAME} - - GF_SERVER_ROOT_URL=http://grafana.${STACK_HOSTNAME} - - LOKI_PORT=${LOKI_PORT} - volumes: - - ${CONFIG_FILEPATH}/grafana/provisioning:/etc/grafana/provisioning - - ${CONFIG_FILEPATH}/grafana/dashboards:/var/lib/grafana/dashboards - - grafana_data:/var/lib/grafana - labels: - - "traefik.http.routers.grafana.rule=Host(`grafana.${STACK_HOSTNAME}`)" - - "traefik.http.routers.grafana.service=grafana" - - "traefik.http.services.grafana.loadbalancer.server.port=${GRAFANA_PORT}" - deploy: - resources: - limits: - cpus: "0.08" - memory: 100M - reservations: - cpus: "0.05" - memory: 50M - depends_on: - - prometheus - networks: - - things_network - cadvisor: - image: gcr.io/cadvisor/cadvisor:latest - container_name: cadvisor - labels: - - "traefik.http.routers.cadvisor.rule=Host(`cadvisor.${STACK_HOSTNAME}`)" - - "traefik.http.routers.cadvisor.service=cadvisor" - - "traefik.http.routers.cadvisor.middlewares=test-things-auth" - - "traefik.http.services.cadvisor.loadbalancer.server.port=${CADVISOR_PORT}" - volumes: - - /:/rootfs:ro - - /var/run/docker.sock:/var/run/docker.sock - - /sys:/sys:ro - - /var/lib/docker/:/var/lib/docker:ro - deploy: - resources: - limits: - cpus: "0.8" - memory: 200M - reservations: - cpus: "0.05" - memory: 100M - networks: - - things_network - depends_on: - - coap-calculator-simple - - coap-calculator-content-negotiation - - http-express-calculator-simple - - http-express-calculator-content-negotiation - - http-flask-calculator - - mqtt-calculator - - modbus-elevator - - http-advanced-coffee-machine - - http-data-schema-thing - portainer: - image: portainer/portainer-ce:latest - volumes: - - /var/run/docker.sock:/var/run/docker.sock - labels: - - "traefik.http.routers.portainer.rule=Host(`portainer.${HOSTNAME}`)" - - "traefik.http.routers.portainer.service=portainer" - - "traefik.http.services.portainer.loadbalancer.server.port=${PORTAINER_PORT}" - deploy: - resources: - limits: - cpus: "0.08" - memory: 50M - reservations: - cpus: "0.05" - memory: 50M - loki: - image: grafana/loki:2.9.2 - # labels: - # - "traefik.http.routers.loki.rule=Host(`loki.${STACK_HOSTNAME}`)" - # - "traefik.http.routers.loki.service=loki" - # - "traefik.http.services.loki.loadbalancer.server.port=${LOKI_PORT}" - ports: - - "3100:3100" - volumes: - - ${CONFIG_FILEPATH}/loki/loki-config.yaml:/etc/loki/local-config.yaml - networks: - - things_network - promtail: - image: grafana/promtail:2.9.2 - volumes: - - /var/log:/var/log - - ${CONFIG_FILEPATH}/promtail/promtail-config.yaml:/etc/promtail/config.yaml - networks: - - things_network -volumes: - prometheus_data: - grafana_data: -networks: - things_network: - name: things_network - driver: "bridge"