Secretstores plugin not decoding password for Rabbit MQ plugin on Windows

When using secretstores plugin on Windows the password only works when hard coded into Rabbit MQ plugin config. Secretstores password reference not working. Same config works on Linux.

telegraf --config C:\telegraf-1.25.3_windows_amd64\telegraf-1.25.3\telegraf-conf.conf secrets set apc_store token

[[secretstores.jose]]
id = “apc_store”
path = “c:\telegraf-1.25.3_windows_amd64\secrets”
password = “abc123”

[[inputs.rabbitmq]]

Management Plugin url. (default: http://localhost:15672)

url = http://localhost:15672

Tag added to rabbitmq_overview series; deprecated: use tags

name = “rmq-server-1”

Credentials

username = “guest”

password = “guest”

password = “@{apc_store:token}”

Optional TLS Config

tls_ca = “/etc/telegraf/ca.pem”

tls_cert = “/etc/telegraf/cert.pem”

tls_key = “/etc/telegraf/key.pem”

Use TLS but skip chain & host verification

insecure_skip_verify = false

Optional request timeouts

ResponseHeaderTimeout, if non-zero, specifies the amount of time to wait

for a server’s response headers after fully writing the request.

header_timeout = “3s”

client_timeout specifies a time limit for requests made by this client.

Includes connection time, any redirects, and reading the response body.

client_timeout = “4s”

A list of nodes to gather as the rabbitmq_node measurement. If not

specified, metrics for all nodes are gathered.

nodes = [“rabbit@node1”, “rabbit@node2”]

A list of queues to gather as the rabbitmq_queue measurement. If not

specified, metrics for all queues are gathered.

Deprecated in 1.6: Use queue_name_include instead.

queue_name_include = [“Azure-test”]

A list of exchanges to gather as the rabbitmq_exchange measurement. If not

specified, metrics for all exchanges are gathered.

exchanges = [“telegraf”]

Metrics to include and exclude. Globs accepted.

Note that an empty array for both will include all metrics

Currently the following metrics are supported: “exchange”, “federation”, “node”, “overview”, “queue”

metric_include =

metric_exclude =

Queues to include and exclude. Globs accepted.

Note that an empty array for both will include all queues

queue_name_include =

queue_name_exclude =

Federation upstreams to include and exclude specified as an array of glob

pattern strings. Federation links can also be limited by the queue and

exchange filters.

federation_upstream_include =

federation_upstream_exclude =

Its ok, it was the version of telegraf. Upgraded from 1.25.3 to 1.29.1 & all good.

Thanks.

@kramsmith thank you so much for sharing your answer with the community!