Skip to content

Commit e86813c

Browse files
committed
chore: remove all jmx + monitoring in the helm chart
close #71
1 parent a78e077 commit e86813c

9 files changed

+0
-326
lines changed

README.md

-24
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,6 @@ helm upgrade -f your-values.yaml georchestra oci://ghcr.io/georchestra/helm-geor
8383
The helm chart provides the possibility to clone the datadir from a remote repository using git. A
8484
secret SSH key can be provided to do so.
8585

86-
# JMX monitoring
87-
88-
A flag can be set in the `values.yaml` so that a collectd-based container is running next to the
89-
main Java one, on the following deployments:
90-
91-
* `geoserver`
92-
* `geonetwork`
93-
* `security-proxy`
94-
95-
If the flag is set to `true` (e.g. `georchestra.webapps.proxy.jetty_monitoring: true`),
96-
then a `collectd` process along with a minimal configuration to scrape common Java and Jetty specific
97-
exposed JMX metrics will be configured. The following annotations will be set on the deployed pod as well:
98-
99-
```
100-
prometheus.io/path: /metrics
101-
prometheus.io/port: "9103"
102-
prometheus.io/scrape: "true"
103-
```
104-
105-
Some `podMonitor` objects will be created as well for each concerned pods (sp, gn, gs).
106-
107-
As a result, if the `prometheus` operator is deployed into the cluster, it will configure itself and be able to scrape the
108-
exposed metrics.
109-
11086
# Mapstore2 / geOrchestra datadir
11187

11288
On the mapstore2 webapp, we are using the following strategy:

templates/geonetwork/geonetwork-deployment.yaml

-27
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ spec:
2222
{{- include "georchestra.selectorLabels" . | nindent 8 }}
2323
org.georchestra.service/name: {{ include "georchestra.fullname" . }}-geonetwork
2424
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geonetwork
25-
{{- if $webapp.jetty_monitoring }}
26-
annotations:
27-
prometheus.io/path: /metrics
28-
prometheus.io/port: "9103"
29-
prometheus.io/scrape: "true"
30-
{{- end }}
3125
spec:
3226
nodeSelector:
3327
"kubernetes.io/os": linux
@@ -78,22 +72,6 @@ spec:
7872
periodSeconds: 50
7973
resources:
8074
{{- toYaml $webapp.resources | nindent 10 }}
81-
{{- if $webapp.jetty_monitoring }}
82-
- name: jmx-collectd
83-
image: camptocamp/jmx-collectd:bookworm
84-
volumeMounts:
85-
- mountPath: /collectd-template
86-
name: georchestra-monitoring-cm
87-
ports:
88-
- containerPort: 9103
89-
name: prometheus
90-
command:
91-
- /bin/sh
92-
- -c
93-
- mkdir /etc/collectd/collectd.conf.d/ ;
94-
cat /collectd-template/collectd-jmx-jetty.conf | sed "s/localhost/$(hostname)/g" > /etc/collectd/collectd.conf.d/jmx.conf ;
95-
collectd -f
96-
{{- end }}
9775
volumes:
9876
- name: georchestra-datadir
9977
emptyDir: {}
@@ -109,11 +87,6 @@ spec:
10987
{{- if $webapp.extra_volumes }}
11088
{{ $webapp.extra_volumes | toYaml | nindent 6 }}
11189
{{- end }}
112-
{{- if $webapp.jetty_monitoring }}
113-
- name: georchestra-monitoring-cm
114-
configMap:
115-
name: {{ include "georchestra.fullname" . }}-monitoring-cm
116-
{{- end }}
11790
{{- if $webapp.registry_secret }}
11891
imagePullSecrets:
11992
- name: {{ $webapp.registry_secret }}

templates/geoserver/geoserver-deployment.yaml

-28
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ spec:
2424
{{- include "georchestra.selectorLabels" . | nindent 8 }}
2525
org.georchestra.service/name: {{ include "georchestra.fullname" . }}-geoserver
2626
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
27-
28-
{{- if $webapp.jetty_monitoring }}
29-
annotations:
30-
prometheus.io/path: /metrics
31-
prometheus.io/port: "9103"
32-
prometheus.io/scrape: "true"
33-
{{- end }}
3427
spec:
3528
nodeSelector:
3629
"kubernetes.io/os": linux
@@ -215,22 +208,6 @@ spec:
215208
periodSeconds: 40
216209
resources:
217210
{{- toYaml $webapp.resources | nindent 10 }}
218-
{{- if $webapp.jetty_monitoring }}
219-
- name: jmx-collectd
220-
image: camptocamp/jmx-collectd:bookworm
221-
volumeMounts:
222-
- mountPath: /collectd-template
223-
name: georchestra-monitoring-cm
224-
ports:
225-
- containerPort: 9103
226-
name: prometheus
227-
command:
228-
- /bin/sh
229-
- -c
230-
- mkdir /etc/collectd/collectd.conf.d/ ;
231-
cat /collectd-template/collectd-jmx-jetty.conf | sed "s/localhost/$(hostname)/g" > /etc/collectd/collectd.conf.d/jmx.conf ;
232-
collectd -f
233-
{{- end }}
234211
volumes:
235212
- name: georchestra-datadir
236213
emptyDir: {}
@@ -252,11 +229,6 @@ spec:
252229
{{- if $webapp.extra_volumes }}
253230
{{ $webapp.extra_volumes | toYaml | nindent 6 }}
254231
{{- end }}
255-
{{- if $webapp.jetty_monitoring }}
256-
- name: georchestra-monitoring-cm
257-
configMap:
258-
name: {{ include "georchestra.fullname" . }}-monitoring-cm
259-
{{- end }}
260232
{{- if $webapp.registry_secret }}
261233
imagePullSecrets:
262234
- name: {{ $webapp.registry_secret }}

templates/monitoring/geonetwork-pm.yaml

-17
This file was deleted.

templates/monitoring/geoserver-pm.yaml

-17
This file was deleted.

templates/monitoring/monitoring-cm.yaml

-165
This file was deleted.

templates/monitoring/sp-pm.yaml

-17
This file was deleted.

templates/security-proxy/security-proxy-deployment.yaml

-28
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ spec:
1919
{{- include "georchestra.selectorLabels" . | nindent 8 }}
2020
org.georchestra.service/name: {{ include "georchestra.fullname" . }}-sp
2121
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-sp
22-
23-
{{- if $webapp.jetty_monitoring }}
24-
annotations:
25-
prometheus.io/path: /metrics
26-
prometheus.io/port: "9103"
27-
prometheus.io/scrape: "true"
28-
{{- end }}
2922
spec:
3023
nodeSelector:
3124
"kubernetes.io/os": linux
@@ -82,22 +75,6 @@ spec:
8275
periodSeconds: 15
8376
resources:
8477
{{- toYaml $webapp.resources | nindent 10 }}
85-
{{- if $webapp.jetty_monitoring }}
86-
- name: jmx-collectd
87-
image: camptocamp/jmx-collectd:bookworm
88-
volumeMounts:
89-
- mountPath: /collectd-template
90-
name: georchestra-monitoring-cm
91-
ports:
92-
- containerPort: 9103
93-
name: prometheus
94-
command:
95-
- /bin/sh
96-
- -c
97-
- mkdir /etc/collectd/collectd.conf.d/ ;
98-
cat /collectd-template/collectd-jmx-jetty.conf | sed "s/localhost/$(hostname)/g" > /etc/collectd/collectd.conf.d/jmx.conf ;
99-
collectd -f
100-
{{- end }}
10178
volumes:
10279
- name: georchestra-datadir
10380
emptyDir: {}
@@ -107,11 +84,6 @@ spec:
10784
secretName: {{ .Values.georchestra.datadir.git.ssh_secret }}
10885
defaultMode: 0400
10986
{{- end }}
110-
{{- if $webapp.jetty_monitoring }}
111-
- name: georchestra-monitoring-cm
112-
configMap:
113-
name: {{ include "georchestra.fullname" . }}-monitoring-cm
114-
{{- end }}
11587
{{- if $webapp.registry_secret }}
11688
imagePullSecrets:
11789
- name: {{ $webapp.registry_secret }}

0 commit comments

Comments
 (0)