added repo
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{{- with (.Values.metaMonitoring).grafanaAgent }}
|
||||
{{- if and .enabled .logs.enabled }}
|
||||
apiVersion: monitoring.grafana.com/v1alpha1
|
||||
kind: LogsInstance
|
||||
metadata:
|
||||
name: {{ include "mimir.resourceName" (dict "ctx" $ "component" "meta-monitoring") }}
|
||||
namespace: {{ (($.Values.metaMonitoring).grafanaAgent).namespace | default $.Release.Namespace | quote }}
|
||||
labels:
|
||||
{{- include "mimir.labels" (dict "ctx" $ "component" "meta-monitoring" ) | nindent 4 }}
|
||||
{{- with .labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
clients:
|
||||
{{- if or (.logs).additionalClientConfigs (.logs).remote }}
|
||||
{{- range $i, $cfg := prepend ((.logs).additionalClientConfigs | default list) (.logs).remote }}
|
||||
{{- with $cfg }}
|
||||
{{- include "mimir.metaMonitoring.logs.client" (dict "ctx" $ "url" .url "auth" .auth "usernameKey" (printf "username-%d" $i)) | nindent 6 -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
# Supply an empty namespace selector to look in all namespaces. Remove
|
||||
# this to only look in the same namespace as the LogsInstance CR
|
||||
podLogsNamespaceSelector: {}
|
||||
|
||||
podLogsSelector:
|
||||
matchLabels:
|
||||
{{- include "mimir.selectorLabels" (dict "ctx" $) | nindent 6 }}
|
||||
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user