Skip to content
Merged
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
4 changes: 2 additions & 2 deletions kube-monitoring/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maintainers:
name: kube-monitoring
sources:
- https://github.com/cloudoperators/greenhouse-extensions
version: 8.0.1
version: 8.0.2
keywords:
- operator
- prometheus
Expand All @@ -26,4 +26,4 @@ dependencies:
alias: blackboxExporter
repository: https://prometheus-community.github.io/helm-charts
version: 11.2.2
condition: blackboxExporter.enabled
condition: blackboxExporter.enabled
10 changes: 0 additions & 10 deletions kube-monitoring/charts/templates/_helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,3 @@ release: {{ .Release.Name }}
{{- end }}
{{- end }}
{{- end }}

{{- define "kubeMonitoring.defaultRelabelConfig" -}}
{{- if .Values.kubeMonitoring.prometheus.prometheusSpec.externalLabels }}
{{- range $key, $value := .Values.kubeMonitoring.prometheus.prometheusSpec.externalLabels }}
- action: replace
target_label: {{ $key }}
replacement: "{{ tpl $value $ }}"
{{- end }}
{{- end }}
{{- end }}
3 changes: 1 addition & 2 deletions kube-monitoring/charts/templates/alertmanager-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ metadata:
{{- include "kube-prometheus-stack.labels" . | indent 4 }}

data:
config.yaml: {{ tpl (include (print $.Template.BasePath "/_alertmanager-config.yaml.tpl") .) . | b64enc }}
relabelConfig.yaml: {{ include "kubeMonitoring.defaultRelabelConfig" . | b64enc }}
config.yaml: {{ tpl (include (print $.Template.BasePath "/_alertmanager-config.yaml.tpl") .) . | b64enc }}
1 change: 0 additions & 1 deletion kube-monitoring/charts/templates/podmonitor-sd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ spec:
{{- if $values.additionalRelabelings }}
{{- tpl (toYaml $values.additionalRelabelings) . | nindent 8 }}
{{- end }}
{{- include "kubeMonitoring.defaultRelabelConfig" . | replace "target_label" "targetLabel" | nindent 8 }}
{{- if $values.additionalMetricRelabelings }}
metricRelabelings:
{{- tpl (toYaml $values.additionalMetricRelabelings) . | nindent 8 }}
Expand Down
11 changes: 2 additions & 9 deletions kube-monitoring/plugindefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kind: PluginDefinition
metadata:
name: kube-monitoring
spec:
version: 9.0.1
version: 9.0.2
displayName: Kubernetes monitoring
description: Native deployment and management of Prometheus along with Kubernetes cluster monitoring components.
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/kube-monitoring/README.md
Expand All @@ -15,7 +15,7 @@ spec:
# renovate depName=ghcr.io/cloudoperators/greenhouse-extensions/charts/kube-monitoring
name: kube-monitoring
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: 8.0.1
version: 8.0.2
options:
- name: global.commonLabels
description: Labels to add to all resources. This can be used to add a support group or service to all alerts.
Expand Down Expand Up @@ -136,13 +136,6 @@ spec:
plugin: "{{ $.Release.Name }}"
required: false
type: map
- name: kubeMonitoring.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret
description: PrometheusRules to be selected for target discovery.
default:
name: "{{ $.Release.Name }}-alertmanager-config"
key: relabelConfig.yaml
required: false
type: map
- name: kubeMonitoring.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret
description: PrometheusRules to be selected for target discovery.
default:
Expand Down
Loading