Merge pull request #371 from arshamparity/helm-servicemonitor

Helm servicemonitor
This commit is contained in:
James Wilson
2021-08-16 15:46:17 +01:00
committed by GitHub
6 changed files with 58 additions and 5 deletions
+1
View File
@@ -12,6 +12,7 @@ spec:
selector:
matchLabels:
{{- include "substrate-telemetry.selectorLabels" . | nindent 6 }}
telemetry-component: core
template:
metadata:
{{- with .Values.podAnnotations }}
+32
View File
@@ -0,0 +1,32 @@
{{- if .Values.serviceMonitor.core.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: telemetry-core
labels:
{{- include "substrate-telemetry.labels" . | nindent 4 }}
telemetry-component: core
{{- if .Values.serviceMonitor.core.additionalLabels }}
{{ toYaml .Values.serviceMonitor.core.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceMonitor.core.annotations }}
annotations:
{{ toYaml .Values.serviceMonitor.core.annotations | indent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "substrate-telemetry.selectorLabels" . | nindent 6 }}
telemetry-component: core
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
endpoints:
- port: http
{{- if .Values.serviceMonitor.core.interval }}
interval: {{ .Values.serviceMonitor.core.interval }}
{{- end }}
{{- if .Values.serviceMonitor.core.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.core.scrapeTimeout }}
{{- end }}
{{- end }}
+1
View File
@@ -12,6 +12,7 @@ spec:
selector:
matchLabels:
{{- include "substrate-telemetry.selectorLabels" . | nindent 6 }}
telemetry-component: frontend
template:
metadata:
{{- with .Values.podAnnotations }}
+1
View File
@@ -12,6 +12,7 @@ spec:
selector:
matchLabels:
{{- include "substrate-telemetry.selectorLabels" . | nindent 6 }}
telemetry-component: shard
template:
metadata:
{{- with .Values.podAnnotations }}
+19 -1
View File
@@ -31,7 +31,25 @@ envVars:
# so that it knows where to look for feed information:
SUBSTRATE_TELEMETRY_URL: wss://feed.telemetry.parity-stg.parity.io/feed
serviceMonitor:
shard:
enabled: false
interval: ""
additionalLabels: {}
annotations: {}
# scrapeTimeout: 10s
core:
enabled: true
interval: ""
additionalLabels: {}
annotations: {}
# scrapeTimeout: 10s
frontend:
enabled: false
interval: ""
additionalLabels: {}
annotations: {}
# scrapeTimeout: 10s
serviceAccount:
# Specifies whether a service account should be created