Compare commits
No commits in common. "ca8d4e72b3bb767810b632053fa0e02cff118d4a" and "c8e0898e4e36f8accd13cd20c85412995bbf3c11" have entirely different histories.
ca8d4e72b3
...
c8e0898e4e
Binary file not shown.
|
|
@ -1,60 +0,0 @@
|
|||
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
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
listener 1883
|
||||
allow_anonymous true
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[[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"
|
||||
Loading…
Reference in New Issue