Skip to content
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

Including the MQTT topic as tag or not #6262

Closed
keomabrun opened this issue Aug 15, 2019 · 1 comment · Fixed by #6266
Closed

Including the MQTT topic as tag or not #6262

keomabrun opened this issue Aug 15, 2019 · 1 comment · Fixed by #6266
Assignees
Labels
area/mqtt feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@keomabrun
Copy link

Feature Request

Hey! Thank you for the awesome work. I am using this plugin and I like it very much.

Could it be possible to decide whether the topic is saved as a tag or not ?

Proposal:

Current behavior:

Currently, the topic is saved as a tag in Influxdb and it produces a lot of different series.
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mqtt_consumer#metrics

As stated in the Influx document, creating too many series will increase memory usage:
https://docs.influxdata.com/influxdb/v1.7/concepts/schema_and_data_layout/#don-t-have-too-many-series

Desired behavior:

Could it be possible to let the user decide whether they want the topic to be saved as a tag or not ?

Use case:

I don't use the information contained in the topic after the data is saved in InfluxDB so I would like to remove the topics from the tags list.

@danielnelson danielnelson self-assigned this Aug 15, 2019
@danielnelson danielnelson added area/mqtt feature request Requests for new plugin and for new features to existing plugins labels Aug 15, 2019
@danielnelson danielnelson added this to the 1.12.0 milestone Aug 15, 2019
@keomabrun
Copy link
Author

Wow ! That was fast. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mqtt feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants