Open kevisong opened 3 years ago
Do you still need this functionality? Are you able to implement it and submit a PR? Thanks!
Do you still need this functionality? Are you able to implement it and submit a PR? Thanks!
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.
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.