Skip to content

Commit

Permalink
Helm: add NOTES.txt
Browse files Browse the repository at this point in the history
Add a NOTES.txt that prints the endpoints that will be usable by the user
for interacting with mimir/gem.

Currently helm does not support rendering the NOTES for testing.
Rage/vote here: helm/helm#6901

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
  • Loading branch information
krajorama committed Jun 23, 2022
1 parent 017a738 commit d383d81
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions operations/helm/charts/mimir-distributed/templates/NOTES.txt
@@ -0,0 +1,33 @@
{{- $gateway := .Values.nginx }}
{{- if .Values.enterprise.enabled }}
{{- $gateway = .Values.gateway }}
Welcome to Grafana Enterprise Metrics!
{{- else }}
Welcome to Grafana Mimir!
{{- end }}

Remote write endpoints for Prometheus or Grafana Agent:
{{ with $gateway.ingress -}}
{{- if .enabled -}}
From outside the cluster via ingress:
{{ range .hosts }} http{{ if .tls }}s{{ end }}://{{ .host }}/api/v1/push
{{ end }}
{{- else -}}
Ingress is not enabled, see {{ if $.Values.enterprise.enabled }}gateway.ingress{{ else }}nginx.ingress{{ end }} values.
{{- end -}}
{{- end }}
From inside the cluster:
http://{{ include "mimir.fullname" $ }}-{{ if .Values.enterprise.enabled }}gateway{{ else }}nginx{{ end }}.{{ .Release.Namespace }}.svc:{{ $gateway.service.port | default "80" }}/api/v1/push

Read address, Grafana data source (Prometheus) URL:
{{ with $gateway.ingress -}}
{{- if .enabled -}}
From outside the cluster via ingress:
{{ range .hosts }} http{{ if .tls }}s{{ end }}://{{ .host }}/prometheus
{{ end }}
{{- else -}}
Ingress is not enabled, see {{ if $.Values.enterprise.enabled }}gateway.ingress{{ else }}nginx.ingress{{ end }} values.
{{- end -}}
{{- end }}
From inside the cluster:
http://{{ include "mimir.fullname" $ }}-{{ if .Values.enterprise.enabled }}gateway{{ else }}nginx{{ end }}.{{ .Release.Namespace }}.svc:{{ $gateway.service.port | default "80" }}/prometheus

0 comments on commit d383d81

Please sign in to comment.