Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeshan333/prometheus-federation-minimal-demo
Prometheus federation minimal demo. Docker based.
https://github.com/yeshan333/prometheus-federation-minimal-demo
alertmanager-webhook dingtalk-robot docker docker-compose federation grafana prometheus prometheus-federation
Last synced: 5 days ago
JSON representation
Prometheus federation minimal demo. Docker based.
- Host: GitHub
- URL: https://github.com/yeshan333/prometheus-federation-minimal-demo
- Owner: yeshan333
- Created: 2021-08-05T09:50:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T09:07:04.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T15:11:40.610Z (11 days ago)
- Topics: alertmanager-webhook, dingtalk-robot, docker, docker-compose, federation, grafana, prometheus, prometheus-federation
- Homepage:
- Size: 187 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Prometheus Federation Minimal Demo
![img into](assets/images/case_intro_img.jpg)
### Requirements- Docker, Ref「[Get Docker](https://docs.docker.com/get-docker/)」
- DingTalk WebHook AccessToken (alert), Ref「[dingtalk-custom robot access](https://developers.dingtalk.com/document/robots/custom-robot-access)」### Quick Start
1、get configs:
```shell
git clone https://github.com/yeshan333/prometheus-federation-minimal-demo.git
cd prometheus-federation-minimal-demo.git
```2、edit the `configs/dingtalk/config.yml` & update the access token「your dingtalk robot」:
```yaml
targets:
webhook1:
url: https://oapi.dingtalk.com/robot/send?access_token=
```3、start docker service:
```shell
docker-compose up
```4、inspect
- Grafana Leader
- address: [localhost:3030](http://localhost:3030)
- user: admin
- password: admin123456
- Grafana Follower
- address: [localhost:3031](http://localhost:3031)
- user: admin
- password: admin123456
- Prometheus Leader
- ui address: [localhost:9090](http://localhost:9090)
- Prometheus Follower 1「Scrape Node Exporter」
- ui address: [localhost:9099](http://localhost:9099)
- Prometheus Follower 2「Scrape Blackbox Exporter」
- ui address: [localhost:9098](http://localhost:9098)
- Node Exporter: [localhost:9100](http://localhost:9100)
- Blackbox Exporter: [localhost:9115](http://localhost:9115)
- dingtalk robot: [localhost:8060](http://localhost:8060)Have fun! Learn more details at `configs` directory.
---
Running container:
```
$ docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
alertmanager "/bin/alertmanager -…" alertmanager running 0.0.0.0:9093->9093/tcp, :::9093->9093/tcp
blackbox_exporter "/bin/blackbox_expor…" blackbox_exporter running 0.0.0.0:9115->9115/tcp, :::9115->9115/tcp
dingtalk-robot "/bin/prometheus-web…" dingtalk-robot running 0.0.0.0:8060->8060/tcp, :::8060->8060/tcp
grafana_follower "/run.sh" grafana_follower running 0.0.0.0:3001->3000/tcp, :::3001->3000/tcp
grafana_leader "/run.sh" grafana_leader running 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp
node_exporter_stats "/bin/node_exporter" node_exporter running 0.0.0.0:9100->9100/tcp, :::9100->9100/tcp
prometheus-follower-1 "/bin/prometheus --c…" prometheus-follower-1 running 0.0.0.0:9099->9090/tcp, :::9099->9090/tcp
prometheus-follower-2 "/bin/prometheus --c…" prometheus-follower-2 running 0.0.0.0:9098->9090/tcp, :::9098->9090/tcp
prometheus-leader "/bin/prometheus --c…" prometheus-leader running 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp
```![dingtalk group alert](assets/images/dingtalk_alert.jpg)