-
Describe the feature requestHello, As of now I am getting a lots of messages for the alert. For example, I am using ping, and I get the following messages as part of the alert, which is too much for my taste. " An alert for xxxx has been detected. Description: Condition results " Instead of the whole bunch of messages above, I just need one line lke "UP" or "DOWN". This means I need only the description part as part of the alert. Is it possible? I know I can customize the Description Why do you personally want this feature to be implemented?Too much messages in telegram alert with out adding any values. I know what I have already configured, and I don't need that again. This causes Readability issues. How long have you been using this project?2 months Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
Have you tried using the custom alerting provider? You should be able to achieve what you're trying to do with it. |
Beta Was this translation helpful? Give feedback.
-
Thanks!. This should work. Is there any example available for custom alert using Telegram?. I see only examples using slack in the documentation. |
Beta Was this translation helpful? Give feedback.
-
You can look at the code for Telegram's alerting provider. For instance, this is what the body looks like: The URL: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointers. Will check the source code |
Beta Was this translation helpful? Give feedback.
-
I added the following , but couldn't make it work. alerting: Got the following error. main.main() Appreciate any help. I am not a web developer by profession. |
Beta Was this translation helpful? Give feedback.
-
Could you format the configuration properly so that I can see exactly what your config is? It seems like you're having an issue with the indentation :) To keep the code formatted, simply wrap the code with ```, such as: ``` Also, the body will look more like this: {"chat_id": "50x41xxxx", "text": "[ALERT_TRIGGERED_OR_RESOLVED]", "parse_mode": "MARKDOWN"} and the url:
|
Beta Was this translation helpful? Give feedback.
-
Works fine now!. Thanks a lot. I just copied the above code , updated the keys/chat_id. Kept the body as it is. All good now |
Beta Was this translation helpful? Give feedback.
-
I noticed that the time zone used in the 'response time' graph of the end points doesn't match with local time zone. What am I missing here? The time zone in the first page ( health status ) is correct. I am using Docker and passing the time stamp via '-e TZ=America/Los_Angeles' . docker run -d |
Beta Was this translation helpful? Give feedback.
Could you format the configuration properly so that I can see exactly what your config is? It seems like you're having an issue with the indentation :)
To keep the code formatted, simply wrap the code with ```, such as:
```
code goes here
```
Also, the body will look more like this:
and the url: