-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional configurable MQTT json key:value to support influxdb database selection #303
Comments
Hi Hans, that's pretty hardcore! A few users have Home Assistant feeding the EMS-ESP data directly into InfluxDB and then using Grafana or Chronograf to see visually or run queries against the timeline. It's something that can setup in minutes. Haven't heard of anyone using Telegraf though. One method could be to create a script to poll the data from the REST APIs using the Telegraf HTTP plugin and avoiding MQTT all together? On your specific request, how would it work exactly? Like where would this key:value json object be part of? A separate payload? |
Hi Paul,
One of my other MQTT clients produces this:
{"V1_sags":5,"V1_swells":0,"V2_sags":5,"V2_swells":0,"V3_sags":4,"V3_swells":0,"database":"dsmr","long_power_failures":12,"power_failures":1373,"timestamp":1642538642}
the "database":"dsmr" is used by telegraf to put the data in dsmr database
in influxdb.
But if this is a niche usecase, I will look for other options...you don't
want to pollute your great app :)
Cheers, Hans
…On Tue, Jan 18, 2022 at 6:06 PM Proddy ***@***.***> wrote:
Hi Hans, that's pretty hardcore! A few users have Home Assistant feeding
the EMS-ESP data directly into InfluxDB and then using Grafana or
Chronograf to see visually or run queries against the timeline. It's
something that can setup in minutes. Haven't heard of anyone using Telegraf
though. One method could be to create a script to poll the data from the
REST APIs using the Telegraf HTTP plugin and avoiding MQTT all together?
On your specific request, how would it work exactly? Like where would this
key:value json object be part of? A separate payload?
—
Reply to this email directly, view it on GitHub
<#303 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFFPZDYDCUMS4VV6VEL7DCTUWWM3FANCNFSM5MHU7OHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I found the proper way to configure this in telegraf.conf |
Is your feature request related to a problem? Please describe.
No - this is a feature request
I am using EMS-ESP in conjunction with Telegraf and influxdb to store selected data from EMS-ESP.
I have multiple MQTT sources (eg, weather, lights, smart meter,...), and I would like to store their data in specific influxdb databases (unique per MQTT source)
Snippet from telegraf configuration:
Telegraf selects (in above config example) the influxdb database based on the MQTT json key:value "database". For MQTT sources under my control, this works, I add eg a database:weather key:value.
For MQTT sources (like EMS-ESP, all data ends up in one influxdb database "telegraf"
I have not been able to find other ways in telegraf to specify a influxdb per [[inputs.mqtt_consumer]]
I do realize that this is scope creep beyond the original intend of EMS-ESP, and understand if it is not implemented.
Cheers,
Hans
The text was updated successfully, but these errors were encountered: