-
Notifications
You must be signed in to change notification settings - Fork 340
feat: make metrics scraping optional #702
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
feat: make metrics scraping optional #702
Conversation
91d3b15
to
2a46272
Compare
/test v4.14-kuttl-parallel |
/test v4.13-kuttl-parallel |
/test v4.14-kuttl-parallel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @saumeya. I tested out the change. Just a small suggestion, rest all looks good.
Thanks for reviewing @svghadi |
/test v4.14-kuttl-parallel |
/test v4.13-kuttl-parallel |
b583b25
to
4979b5f
Compare
4979b5f
to
8332813
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/test v4.14-kuttl-parallel |
/test v4.12-kuttl-parallel |
0985283
to
bdfc4c4
Compare
/test v4.12-images |
/test v4.12-images |
/test v4.14-e2e |
/retest |
Signed-off-by: saumeya <[email protected]> fixes Signed-off-by: saumeya <[email protected]> fix tests and add monitoring by default Signed-off-by: saumeya <[email protected]> add test case Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> add e2e for the feature Signed-off-by: saumeya <[email protected]> uncommenting Signed-off-by: saumeya <[email protected]> rebase Signed-off-by: saumeya <[email protected]> changes: Signed-off-by: saumeya <[email protected]> changes Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
Signed-off-by: saumeya <[email protected]>
bdfc4c4
to
454d858
Compare
/lgtm |
/approve |
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iam-veeramalla, saumeya The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* feat: make metrics scraping optional Signed-off-by: saumeya <[email protected]> fixes Signed-off-by: saumeya <[email protected]> fix tests and add monitoring by default Signed-off-by: saumeya <[email protected]> add test case Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> review comments Signed-off-by: saumeya <[email protected]> add e2e for the feature Signed-off-by: saumeya <[email protected]> uncommenting Signed-off-by: saumeya <[email protected]> rebase Signed-off-by: saumeya <[email protected]> changes: Signed-off-by: saumeya <[email protected]> changes Signed-off-by: saumeya <[email protected]> * bundle changes Signed-off-by: saumeya <[email protected]> * changes Signed-off-by: saumeya <[email protected]> * change Signed-off-by: saumeya <[email protected]> * change Signed-off-by: saumeya <[email protected]> * change Signed-off-by: saumeya <[email protected]> * changes Signed-off-by: saumeya <[email protected]> --------- Signed-off-by: saumeya <[email protected]> Co-authored-by: Abhishek Veeramalla <[email protected]>
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
To make metrics scraping optional in GitOps Operator
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:
How to test changes / Special notes to the reviewer:
Edit the spec.monitoring field to false to disable scraping of metrics, like so
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: argocd-sample
namespace: default
spec:
monitoring:
disableMetrics: true
OR patch the resource using cli, like so
oc patch argocd argocd-sample -n default --type='json' -p='[{"op": "replace", "path": "/spec/monitoring/disableMetrics", "value": true}]'
To enable metrics for your instance, just change the spec.monitoring field to false, this will create the required role, rolebindings and service monitors and add the cluster-monitoring label to the namespace resource.
Disabling it will delete these resources and will also remove the cluster-monitoring label from the namespace resource.