/esphome2loki

Just a bridge between ESPHome devices' logs (MQTT) and Grafana Loki

Primary LanguageRustMIT LicenseMIT

esphome2loki

Just a bridge between ESPHome devices' logs (MQTT) and Grafana Loki

Deployment

Note: using the 'latest' tag is not recommended, you should pick a version.

1. docker-compose (recommended)

esphome2loki:
  image: ghcr.io/shelladdicted/esphome2loki:latest
  restart: unless-stopped
  volumes:
    - ./data/config.toml:/config/config.toml

2. Docker

docker run -d \
   --name=esphome2loki \
   --restart=unless-stopped \
   -v <path/to/config.toml>:/config/config.toml \
   ghcr.io/shelladdicted/esphome2loki:latest

3. Build from source

git clone https://github.com/ShellAddicted/esphome2loki
cd esphome2loki
cargo build --release
cp sample_config.toml config.toml # and edit config.toml
./target/release/esphome2loki # Run it