-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start Telegraf container with latest config from Influx Web UI [workaround] #703
Comments
My first attempt was to upload the config to git.
with
which updates or creates the config from gitlab in the influx container. This however doesnt mean that the config can now be edited in the influx web ui. It does store the changes when I edit it, but it does not store it at the given file location but somewhere else. This makes this unsuitable if one wants to update the config via the webui. |
okay a personal fix, but nothing that changes the fundamental problem:
with the create config and store id script
and the script that waits for the config id and starts the telegraf agent.
This docker compose works as a portainer stack, which requires there be no other files. Thus all files are pulled from a git repo by the service container. Then the influxdb container is initialized and the telegraf config pulled from the repo is specified as the telegraf config. The id of this config is stored in a shared volume file. the telegraf container waits for this file and uses the id to access the config stored in influx. This enables us to modifiy the telegraf config in the influx web ui and after a restart of the telegraf container these changes are used. I would greatly appreciate if there was a simpler way, but this is the solution for our organization for now. |
Note the same issue on Stackoverflow |
I am trying to implement a TIG stack.
Telegraf should be configurable from the influx UI,
but the Telegraf container expects a config file, while the Influx UI instructs one to start telegraf with a call to the api that serves the config created by influx.
This makes it quite tedious to have both configs actually be the same.
There is no command i could start the telegraf container with which always gets the latest config created in the influx ui.
Below i will share my attempts to create a compose file for this.
The text was updated successfully, but these errors were encountered: