-
Notifications
You must be signed in to change notification settings - Fork 103
feat(helm chart): add optional ServiceMonitor for lvmNode service #411
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
base: develop
Are you sure you want to change the base?
feat(helm chart): add optional ServiceMonitor for lvmNode service #411
Conversation
7e412a9
to
f90098c
Compare
Looks like some error with your commit signature @moss-telavox, could you please take a look? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #411 +/- ##
===========================================
- Coverage 98.66% 97.72% -0.94%
===========================================
Files 2 2
Lines 673 1055 +382
===========================================
+ Hits 664 1031 +367
- Misses 5 17 +12
- Partials 4 7 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
70ffec5
to
b7490a6
Compare
@tiagolobocastro think I got it now. Sorry if it resulted in a bunch of CI mails for you guys. |
Hi @moss-telavox , You do not need to create service monitor for localpv-lvm manually. chart present in openebs/monitoring (https://openebs.github.io/monitoring/) does create service monitor. That chart deploys all monitoring related services for OpenEBS engines (mayastor, localpv-lvm, localpv-zfs). |
Ah! Thanks for pointing it out. Will give it a try! |
hmm though not everyone might use the monitoring chart |
linting failures are there in CI runs. |
Option to deploy a servicemonitor (prometheus operator) to automatically scrape the lvmNode metrics. Signed-off-by: Sebastian Mossberg <sebastian.mossberg@telavox.com>
b7490a6
to
8450152
Compare
I removed the trailing whitespace in values.yaml. |
Option to deploy a servicemonitor (prometheus operator) to automatically scrape the lvmNode metrics.
Pull Request template
Please, go through these steps before you submit a PR.
Why is this PR required? What issue does it fix?:
It allows for creating a Prometheus Operator ServiceMonitor to scrape the lvmNode metrics.
Right now one has to create one outside manually.
What this PR does?:
It allows for creating a Prometheus Operator ServiceMonitor to scrape the lvmNode metrics.
By setting
lvmNode.serviceMonitor.enabled
totrue
and specifying whatever label ones PrometheusOperator looks for (common is to have release: promtetheus)Does this PR require any upgrade changes?:
No (at least I don't think so)
If the changes in this PR are manually verified, list down the scenarios covered::
helm template . | grep ServiceMonitor
will not render anything by default
Setting lvmNode.serviceMonitor.enabled=true" will render the template.
helm template . --set lvmNode.serviceMonitor.enabled=true | grep ServiceMonitor
Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>