quartiq / miniconf

Rust serialize/deserialize/access reflection for trees (no_std, no alloc)
MIT License
23 stars 2 forks source link

example telegraf scraping config #139

Open jordens opened 1 year ago

jordens commented 1 year ago

Posting it here as it affects all stabilizer/stabilizer-fls/booster/thermostat-mqtt/thermostat-eem.

This should be integrated into the docs to give people a head start. Also IMO the common docs that are more miniconf-specific from both booster and stabilizer should both be replaced with and reference to miniconf docs.

/etc/telegraf/telegraf.d/miniconf-telemetry.conf

[[inputs.mqtt_consumer]]
  servers = ["tcp://mqtt:1883"]
  topics = [
    "dt/sinara/dual-iir/+/telemetry",
    "dt/sinara/lockin/+/telemetry",
  ]
  data_format = "json"
jordens commented 2 months ago

c.f. https://github.com/quartiq/stabilizer-fls/commit/c89d406877a4a68dde996f8d2a961b56c533f2c0