Add hv-metrics role#781
Conversation
|
Hi @agurenko. Thanks for your PR. I'm waiting for a redhat-performance member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/cc @akrzos @afcollins @mcornea please take a look |
|
@agurenko: GitHub didn't allow me to request PR reviews from the following users: please, take, a, look. Note that only redhat-performance members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Since @afcollins successfully tested role on his setup, I've made final changes to add it to the |
akrzos
left a comment
There was a problem hiding this comment.
This is already providing great insight to hypervisors I am working with, left some comments for discussion. I think there was more experiments between using quadlet vs podman pod IIUC before we intend to merge this.
|
@akrzos @afcollins I think this is ready for prime time, except maybe look into the dashboard metrics themselves. Let's get a clear go on those before we merge. Functionality-wise it's ready and looks solid for clean installs. |
akrzos
left a comment
There was a problem hiding this comment.
Please rebase and squash the commits here so we have a single clean commit for review.
471ca7e to
3dc7eaf
Compare
|
What do you think about moving the role vars to role defaults? Right now role vars take higher precedence than the play |
I don't think that's true according to https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_variables.html#id44 Defaults are lower priority, but vars_files (that are used in setup-bastion.yml and hv-setup.yml) still takes precedence. |
Hmm, according to the doc: |
We should follow the same pattern here and have vars under defaults instead of a vars directory. This is what enables us to easily override the vars for different roles from the vars_files at the play level. The reason it overrides is because:
|
0503d9e to
e4b0d21
Compare
febda33 to
60236a8
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akrzos The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6dadf0b
into
redhat-performance:main
This PR adds two new roles to setup metrics collection from the hypervisor using prometheus server setup on a bastion node and node_exporter running on hypervisors. Optionally (on by default) it will install grafana with a basic dashboard.
hv-metrics-server role for the bastion
hv-metrics-exporter role for the hypervisors
This is a lighter version of proposed #779 that will be shelved for now.