Skip to content
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

Update o11y config #146

Merged

Conversation

ElineMaaikedeWeerd
Copy link
Contributor

Adds 2 new Grafana Agent configurations for snap and deb installs, including logic to apply the correct configuration depending on MAAS version and installation method chosen. It will also install a newer version of the Grafana Agent package for MAAS versions 3.5 and above

This will align Ansible playbooks o11y setup with the monitoring MAAS setup for upcoming MAAS 3.5

Copy link
Member

@SK1Y101 SK1Y101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small question but otherwise +1

{% if group_names|intersect(['maas_region_controller', 'maas_rack_controller']) %}
maas_az: {{ maas_availability_zone | default('default') }}
maas_region: {{ 'True' if 'maas_region_controller' in group_names else 'False' }}
maas_rack: {{ 'True' if 'maas_rack_controller' in group_names else 'False' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be the same as

maas_region: {{ 'maas_region_controller' in group_names }}
maas_rack: {{ 'maas_rack_controller' in group_names }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so-- thanks! It's a copy of the old o11y agent template, so what I'll do is create a separate PR updating all templates after this is merged-- seems cleaner to me.

@ElineMaaikedeWeerd ElineMaaikedeWeerd merged commit 124fdf1 into canonical:main Jan 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants