-
Notifications
You must be signed in to change notification settings - Fork 72
Unclear how to set metric filtering selectors #113
Comments
My read of https://github.com/influxdata/tick-charts/blob/master/telegraf-s/templates/_helpers.tpl#L94-L175 is that it's essentially duplicated twice in order to handle multiple levels of nesting. I.E. if I set
then change the helper to
and render it I get the TOML
(The way baz is rendered there is unexpected, but that tangential to what I'm after) I guess the additional levels use The only fix that comes to my mind is to make this even more comples by adding some logic at https://github.com/influxdata/tick-charts/blob/master/telegraf-s/templates/_helpers.tpl#L141-L142 to check the key name against namepass, namedrop, tagpass, and tagdrop and use |
I've solved our immediate issue by this diff to our fork of the chart:
If these charts are still maintained, I'm happy to sign a CLA and collaborate on a more general fix. |
In the examples at https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#filtering-examples, I can see that tagpass is a table nested under it's input's entry in the array of tables. A valid config would be
However, I don't see a way to get this helm chart to generate that TOML. If I try
I get
Notice the double brackets around inputs.disk.tagpass instead of single brackets.
The text was updated successfully, but these errors were encountered: