Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Developer edition
Version: 9.7.1.62043 -
what are you trying to achieve
scrap sonarqube metrics to monitor the server with podmonitor -
what have you tried so far to achieve this
created a podmonitor crd inside namespace where prometheus is deployed, I can see podmonitor in target in prometheus targets but how can I access the metrics or how can I create a dashboard out of the scraped metrics?
podmonitor yaml:
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: sonarqube-pod-monitor
namespace: infra
spec:
namespaceSelector:
matchNames:
- sonarqube
podMetricsEndpoints:
- interval: 30s
path: /
scheme: http
targetPort: monitoring-ce - interval: 30s
path: /
scheme: http
targetPort: monitoring-web
selector:
matchLabels:
app: sonarqube
prometheus targets: