gpu-operator
gpu-operator copied to clipboard
Allow adding custom labels to the "gpu-operator" ServiceMonitor
feature description
There is a ServiceMonitor named gpu-operator that was automatically created and is owned by the ClusterPolicy. I would like to add custom labels to it so the Prometheus instance with a serviceMonitorSelector can scrape it.
Thanks.
@peihsuant this is already possible today with the dcgmExporter.serviceMonitor.additionalLabels field in clusterpolicy.
Hi @cdesiniotis, what I need to modify is the servicemonitor of gpu-operator not dcgmExporter, thanks.
@peihsuant apologies, I misread the description. I see we do not have any fields for configuring the gpu-operator ServiceMonitor, unlike for dcgmExporter.
If you are interested in working on this, PRs against our gitlab repository are always welcome. https://gitlab.com/nvidia/kubernetes/gpu-operator
@cdesiniotis I would like to give this a try if its still needed.
@csauoss yes this is open. PRs are welcome here https://github.com/NVIDIA/gpu-operator/pulls
@cdesiniotis thank you, but should I create a MR in gitlab(since documentation mentions it) or a PR here is fine as well?
@cdesiniotis I created MR 1099 in gitlab for this issue for now. Please review it when you get a chance.
@csauoss we have recently migrated to GitHub and now perform development here. Can you open your PR against https://github.com/NVIDIA/gpu-operator?
(since documentation mentions it)
Can you point me to where our documentation states this?
Thanks @cdesiniotis! sounds good, will PR here in that case. Here in CONTRIBUTING.md file is where I saw references to Gitlab.
Thanks @cdesiniotis! sounds good, will PR here in that case. Here in CONTRIBUTING.md file is where I saw references to Gitlab.
Actually the pr template in github too
Thank you for pointing this out. I have filed https://github.com/NVIDIA/gpu-operator/pull/851 to update our docs.
@cdesiniotis I created pr #850 in github to address this issue. Please review it when you get a chance. Thanks!
Hello,
Any progress for this feature ?
@awrel34 thanks for bumping it. PR #850 is awaiting review.
This issue is stale because it has been open 90 days with no activity. This issue will be closed in 30 days unless new comments are made or the stale label is removed. To skip these checks, apply the "lifecycle/frozen" label.