Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Add initial telegram alert documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgreg committed Feb 14, 2024
1 parent d2bcad1 commit a692c87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/alert-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Pessimism currently supports the following alert destinations:
|-----------|-------------------------------------|
| slack | Sends alerts to a Slack channel |
| pagerduty | Sends alerts to a PagerDuty service |
| pagerduty | Sends alerts to a PagerDuty service |

## Alert Severity

Expand Down
4 changes: 4 additions & 0 deletions docs/architecture/alerting.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ subgraph AM["Alerting Manager"]
EL --> |Submit alert|SR["SeverityRouter"]
SR --> SH["Slack"]
SR --> PH["PagerDuty"]
SR --> TH["Telegram"]
SR --> CPH["CounterParty Handler"]

end
CPH --> |"HTTP POST"|TPH["Third Party API"]
SH --> |"HTTP POST"|SlackAPI("Slack Webhook API")
TH --> |"HTTP POST"|TelegramBotAPI("Telegram Bot API")
PH --> |"HTTP POST"|PagerDutyAPI("PagerDuty API")

</div>
Expand Down Expand Up @@ -79,6 +81,8 @@ Done! You should now see any generated alerts being forwarded to your specified

The PagerDuty alert destination is a configurable destination that allows alerts to be sent to a specific PagerDuty services via the use of integration keys. Pessimism also uses the UUID associated with an alert as a deduplication key for PagerDuty. This is done to ensure that PagerDuty will not be spammed with duplicate or incidents.

#### Telegram

### Alert CoolDowns

To ensure that alerts aren't spammed to destinations once invoked, a time based cooldown value (`cooldown_time`) can be defined within the `alert_params` of a heuristic session config. This time value determines how long a heuristic session must wait before being allowed to alert again.
Expand Down

0 comments on commit a692c87

Please sign in to comment.