Skip to content

Conversation

moss-telavox
Copy link

@moss-telavox moss-telavox commented Aug 14, 2025

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 to true 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:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

@moss-telavox moss-telavox requested a review from a team as a code owner August 14, 2025 08:50
@moss-telavox moss-telavox force-pushed the servicemonitor-helm-chart branch from 7e412a9 to f90098c Compare August 14, 2025 09:02
@tiagolobocastro
Copy link
Contributor

Looks like some error with your commit signature @moss-telavox, could you please take a look?

@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.72%. Comparing base (8feeaa0) to head (b7490a6).
⚠️ Report is 128 commits behind head on develop.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

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     
Flag Coverage Δ
bddtests 97.72% <ø> (-0.94%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@moss-telavox moss-telavox force-pushed the servicemonitor-helm-chart branch 6 times, most recently from 70ffec5 to b7490a6 Compare August 25, 2025 07:24
@moss-telavox
Copy link
Author

@tiagolobocastro think I got it now. Sorry if it resulted in a bunch of CI mails for you guys.
It kept complaining about my name not being a valid email address.
In the end, had to modify the commit with --author="name <email>" in order for the DCO to pass.
So not just the Signed-off-by:

@abhilashshetty04
Copy link
Member

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).

@moss-telavox
Copy link
Author

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!
Lets close this one!

@tiagolobocastro
Copy link
Contributor

hmm though not everyone might use the monitoring chart
I think we should allow enabling from here

@dsharma-dc
Copy link
Contributor

linting failures are there in CI runs.
Are we still considering this?

Option to deploy a servicemonitor (prometheus operator)
to automatically scrape the lvmNode metrics.

Signed-off-by: Sebastian Mossberg <sebastian.mossberg@telavox.com>
@moss-telavox moss-telavox force-pushed the servicemonitor-helm-chart branch from b7490a6 to 8450152 Compare October 13, 2025 07:31
@moss-telavox
Copy link
Author

I removed the trailing whitespace in values.yaml.

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.

5 participants