aegershman / telegraf-on-cloudfoundry

Can I run telegraf as just a regular ol' application and pass config via env vars?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegraf-on-cloudfoundry

Can I run telegraf as just a regular ol' application and pass config via env vars?

tl;dr, yes you can, and the magic is vcap_squash

As per this github issue, we won't be able to parse the VCAP_SERVICES without running a script first. So telegraf-env-in-user-provided-service.confg won't work without first pre-processing the *.conf to expand out variable references.

examples

For each of the examples/ perform a cf push from within that folder.

links

About

Can I run telegraf as just a regular ol' application and pass config via env vars?

License:MIT License


Languages

Language:Shell 100.0%