1.9 KiB
1.9 KiB
| title | seotitle | description | menu | weight | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Update a Telegraf configuration | Update a Telegraf configuration with Telegraf Controller | Use Telegraf Controller to update Telegraf TOML configuration files. |
|
102 |
Update a configuration to change plugin settings, parameters, and agent-level options.
Update a configuration
- In the {{% product-name %}} web interface, select Configurations in the navigation bar.
- Click the name of the configuration you want to edit or click the More button ({{% icon "tc-more" %}}) and select {{% icon "eye" %}} View/Edit.
- Update global settings, labels, parameters, and plugin settings as needed.
- Review the TOML preview and resolve any validation errors.
- Click Save.
Update configuration name and description
- In the {{% product-name %}} web interface, select Configurations in the navigation bar.
- Click the name of the configuration you want to edit or click the More button ({{% icon "tc-more" %}}) and select {{% icon "eye" %}} View/Edit.
- Under Configuration Information, click the text under Name or Description. The name or description will load into a form field.
- Provide a new name or description and click {{% icon "check" %}}.
Auto-update agents
For agents to automatically recognize and load updates to their
configuration, include the --config-url-watch-interval with a duration value
that specifies how often the agent should check for updates—for example:
telegraf \
--config https://locahost:8888/api/configs/xxxxxx/toml \
--config-url-watch-interval 1h
In this example, the agent will check for configuration changes every hour and automatically reload the configuration if the configuration has been updated.