diff --git a/production/helm/loki/templates/monitoring/_helpers-monitoring.tpl b/production/helm/loki/templates/monitoring/_helpers-monitoring.tpl index b25e479c5fa88..e54f13004d341 100644 --- a/production/helm/loki/templates/monitoring/_helpers-monitoring.tpl +++ b/production/helm/loki/templates/monitoring/_helpers-monitoring.tpl @@ -3,18 +3,13 @@ Client definition for LogsInstance */}} {{- define "loki.logsInstanceClient" -}} {{- $isSingleBinary := eq (include "loki.deployment.isSingleBinary" .) "true" -}} -{{- $url := printf "https://%s.%s.svc.%s:3100/loki/api/v1/push" (include "loki.writeFullname" .) .Release.Namespace .Values.global.clusterDomain }} +{{- $url := printf "http://%s.%s.svc.%s:3100/loki/api/v1/push" (include "loki.writeFullname" .) .Release.Namespace .Values.global.clusterDomain }} {{- if $isSingleBinary }} - {{- $url = printf "https://%s.%s.svc.%s:3100/loki/api/v1/push" (include "loki.singleBinaryFullname" .) .Release.Namespace .Values.global.clusterDomain }} + {{- $url = printf "http://%s.%s.svc.%s:3100/loki/api/v1/push" (include "loki.singleBinaryFullname" .) .Release.Namespace .Values.global.clusterDomain }} {{- else if .Values.gateway.enabled -}} - {{- $url = printf "https://%s.%s.svc.%s/loki/api/v1/push" (include "loki.gatewayFullname" .) .Release.Namespace .Values.global.clusterDomain }} + {{- $url = printf "http://%s.%s.svc.%s/loki/api/v1/push" (include "loki.gatewayFullname" .) .Release.Namespace .Values.global.clusterDomain }} {{- end -}} - url: {{ $url }} - # tlsConfig: - # caFile: /var/root-tls/tls.crt - # certFile: /var/client-tls/tls.crt - # keyFile: /var/client-tls/tls.key - # serverName: loki-memberlist externalLabels: cluster: {{ include "loki.clusterLabel" . }} {{- if .Values.enterprise.enabled }} diff --git a/production/helm/loki/templates/monitoring/dashboards/configmap-1.yaml b/production/helm/loki/templates/monitoring/dashboards/configmap-1.yaml index 868d9fdc028cb..6352f25336d4a 100644 --- a/production/helm/loki/templates/monitoring/dashboards/configmap-1.yaml +++ b/production/helm/loki/templates/monitoring/dashboards/configmap-1.yaml @@ -16,21 +16,15 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} data: - {{- $prefix := "ssd" }} - {{- if "loki.deployment.isDistributed "}} - {{- $prefix = "distributed" }} - {{- end -}} - - # "loki-chunks.json": | - # {{ $.Files.Get (printf "src/dashboards/%s/loki-chunks.json" $prefix) | fromJson | toJson }} - # TODO: why does this one fails? - # "loki-deletion.json": | - # {{ $.Files.Get (printf "src/dashboards/%s/loki-deletion.json" $prefix) | fromJson | toJson }} - # "loki-logs.json": | - # {{ $.Files.Get (printf "src/dashboards/%s/loki-logs.json" $prefix) | fromJson | toJson }} - # "loki-mixin-recording-rules.json": | - # {{ $.Files.Get (printf "src/dashboards/%s/loki-mixin-recording-rules.json" $prefix) | fromJson | toJson }} - # "loki-operational.json": | - # {{ $.Files.Get (printf "src/dashboards/%s/loki-operational.json" $prefix) | fromJson | toJson }} + "loki-chunks.json": | + {{ $.Files.Get "src/dashboards/loki-chunks.json" | fromJson | toJson }} + "loki-deletion.json": | + {{ $.Files.Get "src/dashboards/loki-deletion.json" | fromJson | toJson }} + "loki-logs.json": | + {{ $.Files.Get "src/dashboards/loki-logs.json" | fromJson | toJson }} + "loki-mixin-recording-rules.json": | + {{ $.Files.Get "src/dashboards/loki-mixin-recording-rules.json" | fromJson | toJson }} + "loki-operational.json": | + {{ $.Files.Get "src/dashboards/loki-operational.json" | fromJson | toJson }} {{- end -}} {{- end -}} diff --git a/production/helm/loki/templates/monitoring/dashboards/configmap-2.yaml b/production/helm/loki/templates/monitoring/dashboards/configmap-2.yaml index be0476007b0c6..67d3cf4f9b0d8 100644 --- a/production/helm/loki/templates/monitoring/dashboards/configmap-2.yaml +++ b/production/helm/loki/templates/monitoring/dashboards/configmap-2.yaml @@ -16,20 +16,15 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} data: - {{ $prefix := "ssd" }} - {{- if "loki.deployment.isDistributed "}} - {{- $prefix = "distributed" }} - {{- end -}} - "loki-reads-resources.json": | - {{ $.Files.Get (printf "src/dashboards/%s/loki-reads-resources.json" $prefix) | fromJson | toJson }} + {{ $.Files.Get "src/dashboards/loki-reads-resources.json" | fromJson | toJson }} "loki-reads.json": | - {{ $.Files.Get (printf "src/dashboards/%s/loki-reads.json" $prefix) | fromJson | toJson }} + {{ $.Files.Get "src/dashboards/loki-reads.json" | fromJson | toJson }} "loki-retention.json": | - {{ $.Files.Get (printf "src/dashboards/%s/loki-retention.json" $prefix) | fromJson | toJson }} + {{ $.Files.Get "src/dashboards/loki-retention.json" | fromJson | toJson }} "loki-writes-resources.json": | - {{ $.Files.Get (printf "src/dashboards/%s/loki-writes-resources.json" $prefix) | fromJson | toJson }} + {{ $.Files.Get "src/dashboards/loki-writes-resources.json" | fromJson | toJson }} "loki-writes.json": | - {{ $.Files.Get (printf "src/dashboards/%s/loki-writes.json" $prefix) | fromJson | toJson }} + {{ $.Files.Get "src/dashboards/loki-writes.json" | fromJson | toJson }} +{{- end -}} {{- end -}} -{{- end -}} \ No newline at end of file diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 511f27021c711..05f2a1753a00a 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -654,7 +654,7 @@ monitoring: # -- Tenant to use for self monitoring tenant: # -- Name of the tenant - name: "loki" + name: "self-monitoring" # -- Namespace to create additional tenant token secret in. Useful if your Grafana instance # is in a separate namespace. Token will still be created in the canary namespace. secretNamespace: "{{ .Release.Namespace }}"