Add blackboxexporter

This commit is contained in:
Raffael H 2023-10-12 18:21:37 +02:00
parent 0ad1aae355
commit 905d5a2d09
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{{- define "blackboxexporter.svc" }}
---
apiVersion: v1
kind: Service
metadata:
name: pushgateway
labels:
app.kubernetes.io/name: blackbox-exporter
spec:
ports:
- name: http
port: 9115
protocol: TCP
targetPort: 9115
selector:
app.kubernetes.io/name: blackbox-exporter
type: ClusterIP
{{- end }}

View File

@ -4,6 +4,13 @@
{{- template "alertmanager.alertmanager" . }} {{- template "alertmanager.alertmanager" . }}
{{- end }} {{- end }}
# blackboxexporter
{{- if .Values.blackboxexporter.enabled }}
{{- template "blackboxexporter.cm" . }}
{{- template "blackboxexporter.deploy" . }}
{{- template "blackboxexporter.svc" . }}
{{- end }}
# grafana # grafana
{{- if .Values.grafana.enabled }} {{- if .Values.grafana.enabled }}
{{- template "grafana.datasource" . }} {{- template "grafana.datasource" . }}

View File

@ -21,6 +21,10 @@ grafana:
# pushgateway # pushgateway
pushgateway: pushgateway:
enabled: false enabled: false
# blackboxexporter
blackboxexporter:
enabled: false
# alertmanager # alertmanager
alertmanager: alertmanager: