Any possible fix for the alertmanager generatorURL breaking due to url-encoding issues #3056
Unanswered
aditya-opsverse
asked this question in
Q&A
Replies: 1 comment
-
Hi, you can use golang template functions: https://pkg.go.dev/text/template#hdr-Functions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have set-up
alertmanager
and configured it using the official documentation. The set-up is made to send alerts to Slack, Email and Telegram via thealertmanager
.I have triggered some alerts to see if it is working fine. For Slack and Emails, the
generatorURL
is clickable and when clicked takes back to theGrafana Explore
section which is the expected behaviour. However for Telegram, thegeneratorURL
link is broken (The link is half clickable).After some research, I found out that it is because of the url-encoding (i.e. The quotes, square brackets, etc. are not encoded). I don't know how to encode it manually. However I have tried two solutions:
parseMode
asHTML
and using anchor tag for thegeneratorURL
- Didn't work.reReplaceAll
to replace the quotes, square brackets, etc. into url encoded form from this GitHub Discussion - Didn't work.Any suggestions on what can be done to resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions