Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flashbots/prometheus-sns-lambda-slack
Receive prometheus alerts via AWS SNS and publish then to slack channel
https://github.com/flashbots/prometheus-sns-lambda-slack
alertmanager aws lambda prometheus slack sns
Last synced: 1 day ago
JSON representation
Receive prometheus alerts via AWS SNS and publish then to slack channel
- Host: GitHub
- URL: https://github.com/flashbots/prometheus-sns-lambda-slack
- Owner: flashbots
- Created: 2023-12-01T11:50:26.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T08:24:02.000Z (9 months ago)
- Last Synced: 2024-06-21T18:46:46.628Z (5 months ago)
- Topics: alertmanager, aws, lambda, prometheus, slack, sns
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# prometheus-sns-lambda-slack
Receive prometheus alerts via AWS SNS and publish then to slack channel.
## TL;DR
At the time of writing, Amazon-managed Prometheus does not support
sending alerts to Slack.The "official" way of integration is Prometheus->SNS->Lambda->Slack
[`[1]`](https://aws.amazon.com/blogs/mt/how-to-integrate-amazon-managed-service-for-prometheus-with-slack/).This repo is one of many possible implementations of this idea.
```shell
export SLACK_TOKEN=XXXX-NNNNNNNNNNNNN-NNNNNNNNNNNNN./prometheus-sns-lambda-slack lambda \
--dynamo-db-name slack-alerts \
--slack-channel incidents \
--slack-channel-id XXXXXXXXXXX
```## Features
- Groups messages into threads (based on message labels).
- Deduplicates the messages (AWS managed grafana seems to be 3 instances
in HA setup, which means that each alert sent by grafana comes as a
triplet).
- Can filter-out alerts based on their kind.
- Flags alerts that got resolved with green check-box emoji reaction.---
`[1]` https://aws.amazon.com/blogs/mt/how-to-integrate-amazon-managed-service-for-prometheus-with-slack/