Add customization for PodMonitor on Helm Chart

Current behaviour

Helm’s “values.yaml” allows you to configure a PodMonitor.

Current properties: sonarqube 2026.2.1 · sonarsource/sonarqube

Suggested feature

Would it be possible to add a property to define the apiVersion? This way one could customize it.

Use case: in Azure, Manage Prometheus instance works with azmonitoring.coreos.com/v1 instead of monitoring.coreos.com/v1

apiVersion: azmonitoring.coreos.com/v1
kind: PodMonitor

More info: Create custom Prometheus scrape job from your Kubernetes cluster using CRDs - Azure Monitor | Microsoft Learn

Workaround

Define the PodMonitor manually

Hi Giancarlo,

Thanks for the detailed write-up and the Microsoft Learn reference; this makes total sense. Exposing the PodMonitor apiVersion as a configurable value is a small, backward-compatible change that unblocks Azure Managed Prometheus users without forcing them to drop the chart’s built-in PodMonitor support.

We’ve created an internal ticket to track this and will follow up here once it’s scheduled. Appreciate you flagging it!

Best,

Jimil