Labels defined in the /etc/sensu/agent.yml should appear in the Sensu UI for the respective agent.
Current Behavior
The Sensu UI does not display the labels defined in the agent.yml file. When the Sensu agent is started with the --label flag, labels appear in the UI, but not when they're configured directly in the agent.yml.
Possible Solution
A potential cause might be the Sensu UI not reloading or recognizing updates made to the agent.yml configuration file.
Steps to Reproduce (for bugs)
Configure labels in /etc/sensu/agent.yml.
Restart sensu-agent using systemctl.
Observe that labels do not appear in the Sensu UI.
Stop the agent and restart with the --labels flag, noting that labels now appear in the UI.
Context
This issue is causing difficulties in dynamically managing labels through configuration management tools like Ansible. My objective is to manage agent configuration solely through Ansible without needing additional flags at startup.
Expected Behavior
Labels defined in the
/etc/sensu/agent.yml
should appear in the Sensu UI for the respective agent.Current Behavior
The Sensu UI does not display the labels defined in the
agent.yml
file. When the Sensu agent is started with the--label
flag, labels appear in the UI, but not when they're configured directly in theagent.yml
.Possible Solution
A potential cause might be the Sensu UI not reloading or recognizing updates made to the
agent.yml
configuration file.Steps to Reproduce (for bugs)
/etc/sensu/agent.yml
.systemctl
.--labels
flag, noting that labels now appear in the UI.Context
This issue is causing difficulties in dynamically managing labels through configuration management tools like Ansible. My objective is to manage agent configuration solely through Ansible without needing additional flags at startup.
Your Environment
My Setup
Ansible