Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Community Edition v10.3 - how is SonarQube deployed: Helm
- what are you trying to achieve : collect prometheus metrics
- what have you tried so far to achieve this :
** I followed the logs in order to deploy a podMonitor ( it runs in same names space as sonarqube)
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: sonarqube
spec:
namespaceSelector:
matchNames:
- rct-sonarqube
podMetricsEndpoints:
- interval: 30s
path: /
scheme: http
targetPort: monitoring-ce
- interval: 30s
path: /
scheme: http
targetPort: monitoring-web
selector:
matchLabels:
app: sonarqube
When I check it in prometheus the service is Dropped