os-telegraf: add name_prefix in influxdb config
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [x] When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
i use telegraph to send data to grafana.net influxdb proxy for this purpose, name_prefix help to identify data in grafana. for now i edit config file /usr/local/etc/telegraf.conf and add : name_prefix = "OpnSense_" in [[outputs.influxdb]] section
but every day at midnight this config file is replaced by the datas from opnsense gui which not contain name_prefix.
Describe the solution you'd like
is it possible to addname_prefix field in telegraf output influxdb config ?
Describe alternatives you've considered editing config file /usr/local/etc/telegraf.conf
Additional context OpnSense version : 24.1.10_3 os-telegraf version : 1.12.11 Plugin GUI URL: https://opnsense/ui/telegraf/output/index
i create a PR for this https://github.com/opnsense/plugins/pull/4198
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.