Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/druid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
version: 8.6.4
repository: https://charts.helm.sh/stable
condition: postgresql.enabled
version: 0.3.5
version: 0.3.6
home: https://druid.apache.org/
icon: https://druid.apache.org/img/favicon.png
sources:
Expand Down
12 changes: 12 additions & 0 deletions helm/druid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `broker.serviceType` | service type for service | `ClusterIP` |
| `broker.resources` | broker node resources requests & limits | `{}` |
| `broker.podAnnotations` | broker deployment annotations | `{}` |
| `broker.metrics.port` | Service port to expose metrics on | `8080` |
| `broker.metrics.serviceMonitor.enabled` | Create Prometheus serviceMonitor resource | `false` |
| `broker.nodeSelector` | Node labels for broker pod assignment | `{}` |
| `broker.tolerations` | broker tolerations | `[]` |
| `broker.config` | broker private config such as `JAVA_OPTS` | |
Expand All @@ -130,6 +132,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `coordinator.serviceAccount.automountServiceAccountToken` | Automount API credentials for the Service Account | `true` |
| `coordinator.resources` | coordinator node resources requests & limits | `{}` |
| `coordinator.podAnnotations` | coordinator Deployment annotations | `{}` |
| `coordinator.metrics.port` | Service port to expose metrics on | `8080` |
| `coordinator.metrics.serviceMonitor.enabled` | Create Prometheus serviceMonitor resource | `false` |
| `coordinator.nodeSelector` | node labels for coordinator pod assignment | `{}` |
| `coordinator.tolerations` | coordinator tolerations | `[]` |
| `coordinator.config` | coordinator private config such as `JAVA_OPTS` | |
Expand All @@ -151,6 +155,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `overlord.serviceAccount.automountServiceAccountToken` | Automount API credentials for the Service Account | `true` |
| `overlord.resources` | overlord node resources requests & limits | `{}` |
| `overlord.podAnnotations` | overlord Deployment annotations | `{}` |
| `overlord.metrics.port` | Service port to expose metrics on | `8080` |
| `overlord.metrics.serviceMonitor.enabled`| Create Prometheus serviceMonitor resource | `false` |
| `overlord.nodeSelector` | node labels for overlord pod assignment | `{}` |
| `overlord.tolerations` | overlord tolerations | `[]` |
| `overlord.config` | overlord private config such as `JAVA_OPTS` | |
Expand All @@ -174,6 +180,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `historical.livenessProbeInitialDelaySeconds` | historical node liveness probe initial delay in seconds | `60` |
| `historical.readinessProbeInitialDelaySeconds` | historical node readiness probe initial delay in seconds | `60` |
| `historical.podAnnotations` | historical Deployment annotations | `{}` |
| `historical.metrics.port` | Service port to expose metrics on | `8080` |
| `historical.metrics.serviceMonitor.enabled`| Create Prometheus serviceMonitor resource | `false` |
| `historical.nodeSelector` | node labels for historical pod assignment | `{}` |
| `historical.securityContext` | custom security context for historical containers | `{ fsGroup: 1000 }` |
| `historical.tolerations` | historical tolerations | `[]` |
Expand Down Expand Up @@ -201,6 +209,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `middleManager.serviceAccount.automountServiceAccountToken` | Automount API credentials for the Service Account | `true` |
| `middleManager.resources` | middleManager node resources requests & limits | `{}` |
| `middleManager.podAnnotations` | middleManager Deployment annotations | `{}` |
| `middleManager.metrics.port` | Service port to expose metrics on | `8080` |
| `middleManager.metrics.serviceMonitor.enabled`| Create Prometheus serviceMonitor resource | `false` |
| `middleManager.nodeSelector` | Node labels for middleManager pod assignment | `{}` |
| `middleManager.securityContext` | custom security context for middleManager containers | `{ fsGroup: 1000 }` |
| `middleManager.tolerations` | middleManager tolerations | `[]` |
Expand Down Expand Up @@ -232,6 +242,8 @@ The following table lists the configurable parameters of the Druid chart and the
| `router.serviceAccount.automountServiceAccountToken` | Automount API credentials for the Service Account | `true` |
| `router.resources` | router node resources requests & limits | `{}` |
| `router.podAnnotations` | router Deployment annotations | `{}` |
| `router.metrics.port` | Service port to expose metrics on | `8080` |
| `router.metrics.serviceMonitor.enabled` | Create Prometheus serviceMonitor resource | `false` |
| `router.nodeSelector` | node labels for router pod assignment | `{}` |
| `router.tolerations` | router tolerations | `[]` |
| `router.config` | router private config such as `JAVA_OPTS` | |
Expand Down
8 changes: 7 additions & 1 deletion helm/druid/templates/broker/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.broker.metrics.port (or .Values.broker.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.broker.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.broker.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
component: {{ .Values.broker.name }}
{{- end }}
{{- end }}
41 changes: 41 additions & 0 deletions helm/druid/templates/broker/serviceMonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/}}
{{- if and .Values.broker.enabled .Values.broker.metrics.port .Values.broker.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "druid.broker.fullname" . }}
labels:
app: {{ include "druid.name" . }}
chart: {{ include "druid.chart" . }}
component: {{ .Values.broker.name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ include "druid.name" . }}
component: {{ .Values.broker.name }}
endpoints:
- port: druid-metrics
interval: 20s
path: /metrics
scheme: http
honorLabels: true
{{- end }}
8 changes: 7 additions & 1 deletion helm/druid/templates/coordinator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.coordinator.metrics.port (or .Values.coordinator.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.coordinator.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.coordinator.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
component: {{ .Values.coordinator.name }}
{{- end }}
{{- end }}
41 changes: 41 additions & 0 deletions helm/druid/templates/coordinator/serviceMonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/}}
{{- if and .Values.coordinator.enabled .Values.coordinator.metrics.port .Values.coordinator.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "druid.coordinator.fullname" . }}
labels:
app: {{ include "druid.name" . }}
chart: {{ include "druid.chart" . }}
component: {{ .Values.coordinator.name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ include "druid.name" . }}
component: {{ .Values.coordinator.name }}
endpoints:
- port: druid-metrics
interval: 20s
path: /metrics
scheme: http
honorLabels: true
{{- end }}
8 changes: 7 additions & 1 deletion helm/druid/templates/historical/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.historical.metrics.port (or .Values.historical.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.historical.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.historical.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
component: {{ .Values.historical.name }}
{{- end }}
{{- end }}
41 changes: 41 additions & 0 deletions helm/druid/templates/historical/serviceMonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/}}
{{- if and .Values.historical.enabled .Values.historical.metrics.port .Values.historical.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "druid.historical.fullname" . }}
labels:
app: {{ include "druid.name" . }}
chart: {{ include "druid.chart" . }}
component: {{ .Values.historical.name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ include "druid.name" . }}
component: {{ .Values.historical.name }}
endpoints:
- port: druid-metrics
interval: 20s
path: /metrics
scheme: http
honorLabels: true
{{- end }}
8 changes: 7 additions & 1 deletion helm/druid/templates/middleManager/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.middleManager.metrics.port (or .Values.middleManager.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.middleManager.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.middleManager.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
component: {{ .Values.middleManager.name }}
{{- end }}
{{- end }}
41 changes: 41 additions & 0 deletions helm/druid/templates/middleManager/serviceMonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/}}
{{- if and .Values.middleManager.enabled .Values.middleManager.metrics.port .Values.middleManager.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "druid.middleManager.fullname" . }}
labels:
app: {{ include "druid.name" . }}
chart: {{ include "druid.chart" . }}
component: {{ .Values.middleManager.name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ include "druid.name" . }}
component: {{ .Values.middleManager.name }}
endpoints:
- port: druid-metrics
interval: 20s
path: /metrics
scheme: http
honorLabels: true
{{- end }}
6 changes: 6 additions & 0 deletions helm/druid/templates/overlord/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.overlord.metrics.port (or .Values.overlord.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.overlord.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.overlord.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
Expand Down
41 changes: 41 additions & 0 deletions helm/druid/templates/overlord/serviceMonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/}}
{{- if and .Values.overlord.enabled .Values.overlord.metrics.port .Values.overlord.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "druid.overlord.fullname" . }}
labels:
app: {{ include "druid.name" . }}
chart: {{ include "druid.chart" . }}
component: {{ .Values.overlord.name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
selector:
matchLabels:
app: {{ include "druid.name" . }}
component: {{ .Values.overlord.name }}
endpoints:
- port: druid-metrics
interval: 20s
path: /metrics
scheme: http
honorLabels: true
{{- end }}
6 changes: 6 additions & 0 deletions helm/druid/templates/router/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.router.metrics.port (or .Values.router.config.druid_emitter_prometheus_port .Values.configVars.druid_emitter_prometheus_port) }}
- port: {{ .Values.router.metrics.port }}
targetPort: {{ default .Values.configVars.druid_emitter_prometheus_port .Values.router.config.druid_emitter_prometheus_port }}
protocol: TCP
name: druid-metrics
{{- end }}
selector:
app: {{ include "druid.name" . }}
release: {{ .Release.Name }}
Expand Down
Loading