ShellAddicted / esphome2loki

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 

About

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

License:MIT License


Languages

Language:Rust 88.4%Language:Dockerfile 11.6%