configure all the things
This commit is contained in:
parent
9ffa0b46fb
commit
ac283a1f35
2
.env
2
.env
|
@ -1,5 +1,5 @@
|
|||
MQTT_PORT=1883
|
||||
INFLUX_PORT=8086
|
||||
INFLUX_PORT=8088
|
||||
GRAFANA_PORT=3002
|
||||
ZIGBEE_MQTT_PORT=1884
|
||||
HOST_IP=192.168.222.123
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
password_file /mosquitto/config/users
|
||||
port 8883
|
||||
|
||||
persistence true
|
||||
persistence_location /mosquitto/data/
|
||||
persistence_location /mosquitto/data
|
||||
log_dest file /mosquitto/log/mosquitto.log
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
zigbee:$7$101$IBQ2q1IxkCamOv8W$pxtAYGwyboq1kDZfiLPgJnoViwNHQ2MriDMeASrx2IxsXh0erfROm7Vm68CAcKuQtJ2aogY1H4Y/ubzwqHerfg==
|
||||
telegraf:$7$101$wum+lK0/6s2xMtyF$QXx4+s0avZ9e4AqONFFb6r2hrWPpHK8G+N1LOTgkTzloyXbTXujw9h05O4Ww10qI3UYVChNsttd72wp87Gu11A==
|
|
@ -125,7 +125,7 @@
|
|||
## urls will be written to each interval.
|
||||
# urls = ["unix:///var/run/influxdb.sock"]
|
||||
# urls = ["udp://127.0.0.1:8089"]
|
||||
# urls = ["http://127.0.0.1:8086"]
|
||||
urls = ["http://influxdb:8086"]
|
||||
|
||||
## The target database for metrics; will be created as needed.
|
||||
## For UDP url endpoint database needs to be configured on server side.
|
||||
|
|
|
@ -80,10 +80,11 @@
|
|||
## Multiple URLs can be specified for a single cluster, only ONE of the
|
||||
## urls will be written to each interval.
|
||||
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
|
||||
urls = ["http://192.168.222.123:8086"]
|
||||
urls = ["http://influxdb:8086"]
|
||||
|
||||
## Token for authentication.
|
||||
token = "8n40XpIPBzacUIL9n5gfACuiMURhRRPs5An_-dpAjm7CkDhsEu7ZbEwYLhJXK0d0S040awx9ka0LhksNhH3K_w=="
|
||||
# token = "V7eZ4QpALEMBLykdrmcLG2s8fGQeODQ6_YeU9zxABgCuDssZDF9nj04cJdChqYRE1Z6d8H-hfdQ9lrX_31Y5yA=="
|
||||
|
||||
## Organization is the name of the organization you wish to write to; must exist.
|
||||
organization = "odroid"
|
||||
|
|
|
@ -38,9 +38,10 @@
|
|||
## If set to true, do no set the "host" tag in the telegraf agent.
|
||||
omit_hostname = false
|
||||
[[outputs.influxdb_v2]]
|
||||
urls = ["http://192.168.222.123:8086"]
|
||||
urls = ["http://influxdb:8086"]
|
||||
|
||||
token = "ogr1bEXmLbWetYVTcQpIxwWT23pXgJAYiOeLDYdylTQBvPT9prW--yC_oKJvX3xFl5ZYtB1B2nTzysvo8a6ClQ=="
|
||||
# token = "2f3MkMT2_NFQXKJEt02jnm4zUiDTwObceXQ1Vth7Tv-7KxTLoLcBvlkKBrcVZMfPlYzNkV27-cu9crf7hbYpBA=="
|
||||
token = "I_J7ynLoO9yWcLx1YrB0QntORdJtdoDLHun9umnLs62MHK_31GniQ032edP6G01Q6We9j7UH0pFP-IG_-kPh7A=="
|
||||
|
||||
## Organization is the name of the organization you wish to write to; must exist.
|
||||
organization = "odroid"
|
||||
|
@ -56,7 +57,7 @@
|
|||
## example: servers = ["tcp://localhost:1883"]
|
||||
## servers = ["ssl://localhost:1883"]
|
||||
## servers = ["ws://localhost:1883"]
|
||||
servers = ["tcp://127.0.0.1:1883"]
|
||||
servers = ["tcp://mqtt:1883"]
|
||||
username = "telegraf"
|
||||
password = "iaveexieyuz0Faewa7rieghoyaeseesh"
|
||||
|
||||
|
|
|
@ -16,23 +16,23 @@ services:
|
|||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=secret
|
||||
- GF_SERVER_ROOT_URL=http://${HOST_IP}:${GRAFANA_PORT}/
|
||||
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
||||
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
||||
# - GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
||||
# - GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
||||
- GF_LOG_FILTERS=rendering:debug
|
||||
- GF_INSTALL_PLUGINS=ryantxu-ajax-panel,grafana-piechart-panel
|
||||
|
||||
renderer:
|
||||
image: grafana/grafana-image-renderer:latest
|
||||
# renderer:
|
||||
# image: grafana/grafana-image-renderer:latest
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ${DATA_DIR}/prometheus/data:/prometheus
|
||||
- ./config/prometheus/prometheus.yml:/prometheus/prometheus.yml
|
||||
- ${DATA_DIR}/prometheus/data:/prometheus/data
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
args:
|
||||
command:
|
||||
- '--storage.tsdb.retention.time=100d'
|
||||
|
||||
influxdb:
|
||||
|
@ -41,10 +41,10 @@ services:
|
|||
ports:
|
||||
- "${INFLUX_PORT}:8086"
|
||||
volumes:
|
||||
- ${DATA_DIR}/influxdb:/var/lib/influxdb
|
||||
- ${DATA_DIR}/influxdb:/var/lib/influxdb2
|
||||
|
||||
timescaledb:
|
||||
image: timescale/timescaledb-ha:pg14-latest
|
||||
image: timescale/timescaledb:latest-pg14
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${TIMESCALE_PASSWORD}
|
||||
|
@ -55,7 +55,7 @@ services:
|
|||
image: eclipse-mosquitto:latest
|
||||
user: "1000"
|
||||
ports:
|
||||
- "${MQTT_PORT}:1883"
|
||||
- "${MQTT_PORT}:8883"
|
||||
volumes:
|
||||
- ./config/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
|
||||
- ./config/mosquitto/users:/mosquitto/config/users
|
||||
|
@ -63,18 +63,19 @@ services:
|
|||
- ${DATA_DIR}/mosquitto/log:/mosquitto/log
|
||||
restart: unless-stopped
|
||||
|
||||
zigbee2mqtt:
|
||||
restart: unless-stopped
|
||||
image: koenkk/zigbee2mqtt
|
||||
volumes:
|
||||
- ${DATA_DIR}/zigbee2mqtt-data:/app/data
|
||||
- /run/udev:/run/udev:ro
|
||||
ports:
|
||||
- ${ZIGBEE_MQTT_PORT}:8080
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
devices:
|
||||
- /dev/ttyUSB0:/dev/ttyUSB0
|
||||
# The dongle does not actually work with odroid
|
||||
# zigbee2mqtt:
|
||||
# restart: unless-stopped
|
||||
# image: koenkk/zigbee2mqtt
|
||||
# volumes:
|
||||
# - ${DATA_DIR}/zigbee2mqtt-data:/app/data
|
||||
# - /run/udev:/run/udev:ro
|
||||
# ports:
|
||||
# - ${ZIGBEE_MQTT_PORT}:8080
|
||||
# environment:
|
||||
# - TZ=Europe/Berlin
|
||||
# devices:
|
||||
# - /dev/ttyUSB0:/dev/ttyUSB0
|
||||
|
||||
telegraf:
|
||||
image: telegraf
|
||||
|
|
Loading…
Reference in New Issue