We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Opening a feature request kicks off a discussion.
{{tag_name}}
index_name
template_name
[global_tags] monitor = "http" [[outputs.elasticsearch]] urls = [ "http://127.0.0.1:9200" ] index_name = "telegraf-{{monitor}}-%Y.%m.%d" template_name = "telegraf-http"
[global_tags] monitor = "http" [[outputs.elasticsearch]] urls = [ "http://127.0.0.1:9200" ] index_name = "telegraf-{{monitor}}-%Y.%m.%d" template_name = "telegraf-{{monitor}}"
When the global_tags.monitor is changed, the hardcoded template_name = "telegraf-http" may be forgotten.
global_tags.monitor
template_name = "telegraf-http"
If template_name supports tag reference, we only need to change the global_tags.monitor and the template_name will be modified automatically.
The text was updated successfully, but these errors were encountered:
Do you still need this functionality? Are you able to implement it and submit a PR? Thanks!
Sorry, something went wrong.
Yeah. This feature might be helpful when there is a fair amount of elasticsearch outputs using the same global_tags.
I can implement it and submit a PR later on.
No branches or pull requests
Feature Request
Opening a feature request kicks off a discussion.
Proposal: Support using tag with notation
{{tag_name}}
in template nameCurrent behavior:
index_name
supports using tag as part of the name. Buttemplate_name
can only be hardcoded.Desired behavior: Both
index_name
andtemplate_name
support tag notationUse case:
When the
global_tags.monitor
is changed, the hardcodedtemplate_name = "telegraf-http"
may be forgotten.If
template_name
supports tag reference, we only need to change theglobal_tags.monitor
and thetemplate_name
will be modified automatically.The text was updated successfully, but these errors were encountered: