mirror of https://github.com/grafana/loki
Helm: Allow users to define remote write for metrics. (#7399)
parent
1260adc756
commit
9bc6e85604
@ -0,0 +1,29 @@ |
||||
{{- if .Values.monitoring.serviceMonitor.enabled }} |
||||
{{- with .Values.monitoring.serviceMonitor.metricsInstance }} |
||||
apiVersion: monitoring.grafana.com/v1alpha1 |
||||
kind: MetricsInstance |
||||
metadata: |
||||
name: {{ include "loki.fullname" $ }} |
||||
namespace: {{ .namespace | default $.Release.Namespace }} |
||||
{{- with .annotations }} |
||||
annotations: |
||||
{{- toYaml . | nindent 4 }} |
||||
{{- end }} |
||||
labels: |
||||
{{- include "loki.labels" $ | nindent 4 }} |
||||
{{- with .labels }} |
||||
{{- toYaml . | nindent 4 }} |
||||
{{- end }} |
||||
spec: |
||||
{{- with .remoteWrite}} |
||||
remoteWrite: |
||||
{{- toYaml . | nindent 4 }} |
||||
{{- end }} |
||||
|
||||
serviceMonitorNamespaceSelector: {} |
||||
|
||||
serviceMonitorSelector: |
||||
matchLabels: |
||||
{{- include "loki.selectorLabels" $ | nindent 6 }} |
||||
{{- end -}} |
||||
{{- end -}} |
||||
Loading…
Reference in new issue