We use this components to build a simple production enviorment include program monitoring ,process warning alert , containers and deploy node data monitoring.
- node-exporter is going to help us to export deploy node's metrics.
- cadvisor is going to export container metrics.
- Kotlin
- SpringBoot
- Gradle
- Prometheus
- Grafana
- AlertManager
- cadvisor
- node-exporter
- all feature in docker-compose
- move to alertmanager folder , and open config.yml
- edit slack_configs.api_url to your slack webhook url
- back to project root
- key in docker-compose command
docker-compose up -d
- now you can use your internal network to see this demo
Service name | Port |
---|---|
the demo kotlin service app | 8081 |
prometheus | 9090 |
grafana | 3000 |
alertmanager | 9003 |
node-exporter | 9100 |
cadvisor | 8080 |
If you have more interesting for this , you can browse my share article Article on Medium
Remarks: My articles are all in Chinese.