You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I need to replace space in the alertname with %20 but the function "reReplaceAll" is appearing as not defined.
I tested with urlquery and it replace " " with +, but with this I need to replace + with %20.
Do you guys know how can I use the function reReplaceAll? I checked and it was implemented by the alertmanager lib here.
Error: time="2023-05-26T13:04:08Z" level=fatal msg="error initialising google chat provider" error="template: message.tmpl:28: function \"reReplaceAll\" not defined"
Template:
{{- define "alert_silence_link" -}}
{{- if eq .Status "firing" -}}
{{ template "externalURL" . }}/#/silences/new?filter=%7B
{{- range .Labels.SortedPairs -}}
{{- if ne .Name "alertname" -}}
{{- .Name }}%3D%22{{ urlquery .Value | reReplaceAll "\+" "%20" }}%22%2C%20
{{- end -}}
{{- end -}}
alertname%3D%22{{ urlquery .Labels.alertname | reReplaceAll "\+" "%20" }}%22%7D
{{- end -}}
{{- end -}}
The text was updated successfully, but these errors were encountered:
Hi! I need to replace space in the alertname with %20 but the function "reReplaceAll" is appearing as not defined.
I tested with urlquery and it replace " " with +, but with this I need to replace + with %20.
Do you guys know how can I use the function reReplaceAll? I checked and it was implemented by the alertmanager lib here.
Error:
time="2023-05-26T13:04:08Z" level=fatal msg="error initialising google chat provider" error="template: message.tmpl:28: function \"reReplaceAll\" not defined"
Template:
The text was updated successfully, but these errors were encountered: