Skip to content

Commit

Permalink
fix: PodMonitor doesn't honor sonarWebContext and fails to monitor So…
Browse files Browse the repository at this point in the history
…narQube
  • Loading branch information
wwsean08 committed Apr 12, 2024
1 parent c4d4979 commit 8f7bc2f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/sonarqube-dce/CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ All changes to this chart will be documented in this file.
* Deprecate nginx.enabled in favor of ingress-nginx.enabled, to match with subchart config block
* Deprecate `ApplicationNodes.prometheusMonitoring.podMonitor.namespace`
* Instantiate `monitoring-web` and `monitoring-ce` endpoints when the `ApplicationNodes.prometheusExporter` is enabled
* Take `sonarWebContext` into account for the `PodMonitor` path

## [10.4.0]
* Upgrade SonarQube to 10.4.0
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube-dce/Chart.yaml
Expand Up @@ -57,6 +57,8 @@ annotations:
description: "Deprecate ApplicationNodes.prometheusMonitoring.podMonitor.namespace"
- kind: changed
description: "Instantiate monitoring-web and monitoring-ce endpoints when the ApplicationNodes.prometheusExporter is enabled"
- kind: fixed
description: "Take `sonarWebContext` into account for the `PodMonitor` path"
artifacthub.io/links: |
- name: support
url: https://community.sonarsource.com/
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube-dce/templates/prometheus-podmonitor.yaml
Expand Up @@ -22,7 +22,7 @@ spec:
app: {{ template "sonarqube.name" . }}
podMetricsEndpoints:
- port: http
path: /api/monitoring/metrics
path: {{ include "sonarqube.webcontext" . }}api/monitoring/metrics
scheme: http
{{- if .Values.ApplicationNodes.prometheusMonitoring.podMonitor.interval }}
interval: {{ .Values.ApplicationNodes.prometheusMonitoring.podMonitor.interval }}
Expand Down
1 change: 1 addition & 0 deletions charts/sonarqube/CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ All changes to this chart will be documented in this file.
* Deprecate nginx.enabled in favor of ingress-nginx.enabled, to match with subchart config block
* Deprecate `prometheusMonitoring.podMonitor.namespace`
* Instantiate `monitoring-web` and `monitoring-ce` endpoints when the `prometheusExporter` is enabled
* Take `sonarWebContext` into account for the `PodMonitor` path

## [10.4.0]
* Upgrade SonarQube to 10.4.0
Expand Down
2 changes: 2 additions & 0 deletions charts/sonarqube/Chart.yaml
Expand Up @@ -52,6 +52,8 @@ annotations:
description: "Deprecate prometheusMonitoring.podMonitor.namespace"
- kind: changed
description: "Instantiate monitoring-web and monitoring-ce endpoints when the prometheusExporter is enabled"
- kind: fixed
description: "Take `sonarWebContext` into account for the `PodMonitor` path"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: sonarqube
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarqube/templates/prometheus-podmonitor.yaml
Expand Up @@ -22,7 +22,7 @@ spec:
app: {{ template "sonarqube.name" . }}
podMetricsEndpoints:
- port: http
path: /api/monitoring/metrics
path: {{ include "sonarqube.webcontext" . }}api/monitoring/metrics
scheme: http
{{- if .Values.prometheusMonitoring.podMonitor.interval }}
interval: {{ .Values.prometheusMonitoring.podMonitor.interval }}
Expand Down

0 comments on commit 8f7bc2f

Please sign in to comment.