2024-01-20 23:16:15 -06:00
2023-12-07 00:10:36 -06:00
2023-11-20 21:33:00 -06:00
2023-11-20 17:37:32 -06:00
2024-01-20 21:45:52 -06:00

docker-observation

Various tools to monitor Docker containers

Services

Telegraf - Docker plugin

Telegraf is the open source server agent to help you collect metrics from your stacks, sensors, and systems.

Grafana Promtail

Promtail is an agent which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud. It is usually deployed to every machine that runs applications which need to be monitored.

Pipline Stages

  • appdaemon
    • labels date. time, level, app, and msg
  • zigbee2mqtt
    • labels MQTT publish - device and payload
    • categorizes occupancy or contact

Environment Variables

  • DOCKER_INFLUXDB_INIT_ORG
    • Designates the InfluxDB organization in telegraf.conf
  • INFLUX_WRITE_TOKEN
    • Designates the write token for InfluxDB in telegraf.conf
  • INFLUX_HOST (optional)
  • LOKI_HOST (optional)

Setup

Set the DOCKER_GUID so the container has permission to access the socket. This ensures that the telegraf container will have read access on the Docker socket.

export DOCKER_GUID=$(getent group docker | awk -F ':' '{print $3}')
Description
No description provided
Readme 86 KiB