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

Add ability to enable metrics in Grafana #334

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thelooter
Copy link

@thelooter thelooter commented Mar 10, 2025

  • Add default variables for the [metrics] section in roles/grafana/defaults/main.yml.
  • Add documentation for the new metrics settings in roles/grafana/README.md.
  • Add tests to verify the new metrics settings in roles/grafana/molecule/alternative/tests/test_alternative.py and roles/grafana/molecule/default/tests/test_default.py.

I'm not sure if the test changes are needed, please advise if I should remove them

Fixes #332

feat(grafana): Add ability to enable Metrics in Grafana role.

* Add default variables for the `[metrics]` section in `roles/grafana/defaults/main.yml`.
* Add documentation for the new metrics settings in `roles/grafana/README.md`.
* Add tests to verify the new metrics settings in `roles/grafana/molecule/alternative/tests/test_alternative.py` and `roles/grafana/molecule/default/tests/test_default.py`.
@CLAassistant
Copy link

CLAassistant commented Mar 10, 2025

CLA assistant check
All committers have signed the CLA.

@intermittentnrg
Copy link
Contributor

intermittentnrg commented Mar 11, 2025

If this is purely configured via grafana.ini that can be set via grafana_ini then it's arguable out of scope for grafana ansible role.

And should it be enabled by default without auth? It's up to grafana to set defaults when not configured I'd think.

Provinding guidance and examples is great tho. And if possible it should be made clearer that any grafana.ini settings can be configured via grafana_ini variable.

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.

Ability to enable Grafana metrics
3 participants