/telegraf-on-cloudfoundry

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

Primary LanguageShellMIT LicenseMIT

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