Compare commits

...

16 Commits

Author SHA1 Message Date
Daniel Meiburg ca8d4e72b3
grafana-influx: disable 2024-08-21 20:49:45 +02:00
Daniel Meiburg 678bf55a80
grafana-influx: add opc ua to telegraf 2024-07-03 21:52:59 +02:00
Daniel Meiburg 8512fb40c4
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:54:01 +02:00
Daniel Meiburg fad39d3624
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:52:59 +02:00
Daniel Meiburg 842f270e5f
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:37:26 +02:00
Daniel Meiburg a5f5190b38
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:35:11 +02:00
Daniel Meiburg 1514df206a
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:32:24 +02:00
Daniel Meiburg 1d61c6eb11
grafana-influx: attempt to fix mqtt parsing with telegraf 2024-07-03 00:30:12 +02:00
Daniel Meiburg 3495169f57
grafana-influx: attempt mqtt parsing with telegraf 2024-07-03 00:23:24 +02:00
Daniel Meiburg 8bb58b4cc6
grafana-influx: add token via encrypted env 2024-07-02 23:28:13 +02:00
Daniel Meiburg 2aef0c60ff
grafana-influx: basic telegraph/mosquitto setup 2024-07-02 23:02:49 +02:00
Daniel Meiburg 411fda94a9
grafana-influx: fix influxdb persistent storage 2024-07-02 22:33:03 +02:00
Daniel Meiburg 4a377a02f3
grafana-influx: attempt to fix clock 2024-06-30 22:13:29 +02:00
Daniel Meiburg b4efd98ab4
grafana-influx: add grafana clock 2024-06-30 22:11:20 +02:00
Daniel Meiburg bb775d0165
grafana-influx: add to caddy network 2024-06-23 14:14:26 +02:00
Daniel Meiburg 9c8bc67938
grafana-influx: setup and enabled 2024-06-23 14:08:50 +02:00
5 changed files with 82 additions and 0 deletions

BIN
grafana-influx/.env.gpg Normal file

Binary file not shown.

View File

@ -0,0 +1,60 @@
version: '3'
services:
influxdb:
image: influxdb
container_name: influxdb
expose:
- "8086"
volumes:
- influxdb-data:/var/lib/influxdb2
restart: unless-stopped
labels:
caddy: influx.dmeiburg.de
caddy.reverse_proxy: "{{upstreams 8086}}"
grafana:
image: grafana/grafana
container_name: grafana
expose:
- "3000"
depends_on:
- influxdb
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
environment:
- GF_SERVER_ROOT_URL=https://grafana.dmeiburg.de
- GF_INSTALL_PLUGINS=grafana-clock-panel
labels:
caddy: grafana.dmeiburg.de
caddy.reverse_proxy: "{{upstreams 3000}}"
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
telegraf:
image: telegraf
container_name: telegraf
restart: unless-stopped
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- mosquitto
- influxdb
env_file: .env
volumes:
influxdb-data:
grafana-data:
networks:
default:
name: caddy
external: true

View File

@ -0,0 +1,2 @@
listener 1883
allow_anonymous true

View File

@ -0,0 +1,20 @@
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
bucket = "simplecloud"
organization = "DES"
token = "$TOKEN"
[[inputs.mqtt_consumer]]
servers = ["tcp://mosquitto:1883"]
topics = [ "climate/#" ]
data_format = "value"
data_type = "float"
topic_tag = ""
[[inputs.mqtt_consumer.topic_parsing]]
topic = "+/+/+"
measurement = "climate"
tags = "_/device/field"
[[processors.pivot]]
tag_key = "field"
value_key = "value"

0
nextcloud/enabled Normal file
View File