Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hengkyawijaya/monitoring-tools
Basic implementation monitoring tools with datadog, prometheus and grafana
https://github.com/hengkyawijaya/monitoring-tools
alerting datadog datadog-agent docker docker-compose grafana monitoring prometheus
Last synced: about 2 months ago
JSON representation
Basic implementation monitoring tools with datadog, prometheus and grafana
- Host: GitHub
- URL: https://github.com/hengkyawijaya/monitoring-tools
- Owner: hengkyawijaya
- Created: 2019-09-16T08:48:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T08:22:11.000Z (over 5 years ago)
- Last Synced: 2023-03-05T23:15:07.169Z (almost 2 years ago)
- Topics: alerting, datadog, datadog-agent, docker, docker-compose, grafana, monitoring, prometheus
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monitoring Tools
### Prerequisite
docker, docker-compose, dep (Golang package manager) must be installedCreate docker cluster (Optional)
```
docker swarm init --advertise-addr
```Install portainer swarm mode (Optional)
```
curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml
docker stack deploy --compose-file=portainer-agent-stack.yml portainer
```### How To Run
1. Run Prometheus
```
docker run --name prometheus --net=host -p 9090:9090 -v $GOPATH/src/github.com/hengkyawijaya/monitoring-tools/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
```2. Run Datadog Agent
```
DOCKER_CONTENT_TRUST=1 docker run --net=host -d --name dd-agent -p 8125:8125 -v /var/run/docker.sock:/var/run/docker.sock:ro -v /proc/:/host/proc/:ro -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro -e DD_API_KEY=03ed27b263661e934bad7a3ce90a89ab datadog/agent:latest
```2. Run Grafana
```
docker run -d \
-p 3000:3000 \
--name=grafana \
-e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
-e "GF_SECURITY_ADMIN_PASSWORD=secret" \
grafana/grafana
```
3. Run demo app
```
cd demo-app
dep ensure -v --vendor-only
go run main.go
```
4. Run simpe app
```
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up
```
5. Run simple app swarm mode
```
docker-compose -f docker-compose.yml build
docker stack deploy --compose-file=docker-compose.yml monitoring-tools
```
6. Run load testing app
```
cd load-test
dep ensure -v --vendor-only
go run main.go
```