Environment variables configuration
Our agent can get its configuration values for plugins from environment values configured on the server. This allows you to use the same agent for a lot of servers without having to generate a new agent for different configuration setups. An example where this might be used is with database plugin where the status user password isn’t the same on all machines.
How to get started
1. Create environment file
/etc/default/coscale-agent and add the following content
2. Configure agent
In the plugin configuration you set the configuration settings to the variable names you created. In this example I’m configuring the MySQL database plugin with custom variables.
3. Restart the Agent
Restart the agent, afterwards the config will be read from file.