Kapacitor Env variable for influxdb subscriptions

#1

Hello,
I’m trying to utilize env variables for all my kapacitor config settings and I’m having some trouble figuring out what the syntax would be for the influx included description section. Specifically:

[[influxdb]]
[influxdb.subscriptions]
# Set of databases and retention policies to subscribe to.
# If empty will subscribe to all, minus the list in
# influxdb.excluded-subscriptions
#
# Format
# db_name =
#
# Example:
# my_database = [ “default”, “longterm” ]

I’d like to only subscribe to the autogen retention policy in a database called “my_db” but am not sure how to achieve that. It seems like I want something like this which doesn’t work

KAPACITOR_INFLUXDB_0_SUBSCRIPTIONS_0_my_db=autogen

Any pointers?

#2

Looking at the toml reference, I think this is closer but still doesn’t work. Is the underscore in my db name messing this up?

KAPACITOR_INFLUXDB_0_INFLUXDB.SUBSCRIPTIONS_my_db=autogen