-
Notifications
You must be signed in to change notification settings - Fork 20
prometheus grafana
Mehrdad Arshad Rad edited this page Jan 14, 2021
·
7 revisions
You can run this demo through docker-compose and customize it with your targets quickly.
prerequisite: Docker and Docker Compose
- Clone the tcpprobe repo from github.
git clone https://github.com/mehrdadrad/tcpprobe.git
- Change the directory like below:
cd scripts/demo
- You can add your targets by editing the docker-compose.yml under tcpprobe service (optional)
version: "3"
services:
tcpprobe:
image: mehrdadrad/tcpprobe:latest
hostname: tcpprobe
ports:
- "8081:8081"
- "8082:8082"
entrypoint:
["tcpprobe", "-i", "20s", "https://www.google.com", "https://github.com"]
- run the demo by below command:
docker-compose up -d
- Open your browser and visit http://localhost:3000 through below credential:
user: tcpprobe pass: tcpprobe
Now you need to click on the "TCPProbe demo" pre-provisioned dashboard.
You can talk with running tcpprobe through command line or your script through gRPC:
Delete target
tcpprobe del https://www.google.com
Add target
tcpprobe add https://www.google.com
You can shutdown and clean up the demo by docker-compose down