mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/home-assistant] added servicemonitor (#13524)
* Added servicemonitor Signed-off-by: Philipp Hellmich <phil@hellmi.de> * Update values.yaml Signed-off-by: Philipp Hellmich <philipp.hellmich@bertelsmann.de>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0c809258b3
commit
2b23dae64b
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
appVersion: 0.92.1
|
||||
appVersion: 0.92.2
|
||||
description: Home Assistant
|
||||
name: home-assistant
|
||||
version: 0.8.0
|
||||
version: 0.8.2
|
||||
keywords:
|
||||
- home-assistant
|
||||
- hass
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- if and ( .Values.monitoring.serviceMonitor.enabled ) ( .Values.monitoring.enabled ) }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
{{- if .Values.monitoring.serviceMonitor.labels }}
|
||||
labels:
|
||||
{{ toYaml .Values.monitoring.serviceMonitor.labels | indent 4}}
|
||||
{{- end }}
|
||||
name: {{ template "home-assistant.fullname" . }}-prometheus-exporter
|
||||
{{- if .Values.monitoring.serviceMonitor.namespace }}
|
||||
namespace: {{ .Values.monitoring.serviceMonitor.namespace }}
|
||||
{{- end }}
|
||||
spec:
|
||||
endpoints:
|
||||
- targetPort: api
|
||||
path: /api/prometheus
|
||||
{{- if .Values.monitoring.serviceMonitor.interval }}
|
||||
interval: {{ .Values.monitoring.serviceMonitor.interval }}
|
||||
{{- end }}
|
||||
jobLabel: {{ template "home-assistant.fullname" . }}-prometheus-exporter
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- {{ .Release.Namespace }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ include "home-assistant.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
@@ -151,6 +151,23 @@ configurator:
|
||||
loadBalancerSourceRanges: []
|
||||
# nodePort: 30000
|
||||
|
||||
## Add support for Prometheus
|
||||
# settings has to be enabled in configuration.yaml
|
||||
# https://www.home-assistant.io/components/prometheus/
|
||||
monitoring:
|
||||
enabled: false
|
||||
serviceMonitor:
|
||||
# When set true and if Prometheus Operator is installed then use a ServiceMonitor to configure scraping
|
||||
enabled: true
|
||||
# Set the namespace the ServiceMonitor should be deployed
|
||||
# namespace: monitoring
|
||||
# Set how frequently Prometheus should scrape
|
||||
# interval: 30s
|
||||
# Set path to beats-exporter telemtery-path
|
||||
# telemetryPath: /metrics
|
||||
# Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator
|
||||
# labels:
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
|
||||
Reference in New Issue
Block a user