{{- if and (not .Values.containerToken) (not .Values.logsToken) -}}

###############################################################################
#           ERROR: Please provide containerToken and/or logsToken!            #
###############################################################################

Depending on which region you want to use, create a container and/or logs apps
to get your tokens. Then, start the app with:

helm install --name release_name \
  --set sematext.containerToken=YOUR_CONTAINER_TOKEN \
  stable/sematext-agent

Or if you created both apps use:

helm install --name release_name \
  --set containerToken=YOUR_CONTAINER_TOKEN,logsToken=YOUR_LOGS_TOKEN \
  stable/sematext-agent

Please check the README file for all available parameters.

{{- else if not .Values.logsToken -}}

Missing logsToken! You will only receive metrics and events.
{{ if eq .Values.region "US" }}
After a few minutes check your app at https://apps.sematext.com/ui/monitoring
{{ else if eq .Values.region "EU" }}
After a few minutes check your app at https://apps.eu.sematext.com/ui/monitoring
{{ end }}

{{- else if not .Values.containerToken -}}

Missing containerToken! You will only receive logs.
{{ if eq .Values.region "US" }}
After a few minutes check your app at https://apps.sematext.com/ui/logs
{{ else if eq .Values.region "EU" }}
After a few minutes check your app at https://apps.eu.sematext.com/ui/logs
{{ end }}

{{- else -}}

You are all set!
{{ if eq .Values.region "US" }}
After a few minutes check your metrics app at https://apps.sematext.com/ui/monitoring
or logs at https://apps.sematext.com/ui/logs
{{ else if eq .Values.region "EU" }}
After a few minutes check your metrics app at https://apps.eu.sematext.com/ui/monitoring
or logs at https://apps.eu.sematext.com/ui/logs
{{ end }}

{{- end -}}
