Telegraf config for collecting and processing photon data.
- Docker 24.0.2
- Python 3.9
- Telegraf 1.27
Ensure the following environment variables are set:
INFLUX_TOKEN=sample INFLUX_ORG=sample INFLUX_HOST=https://influx_host.com INFLUX_BUCKET=photon_test PHOTON_API=photon_api_url PHOTON_API_KEY=photon_api_key IMPORT_INTERVAL=1h TZ=preferred_timezone
Then run the build script
docker build . -t plus-telegraf docker run --rm --name pt plus-telegraf