Skip to content

seth-epps/prometheus-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Sandbox

This is a personal learning sandbox so I can poke around Prometheus.

Running

To start prometheus

docker compose -f ./starter/docker-compose.yml up -d

To start the instrumented http servers. If building for the first time, this might take a bit because I didn't optimize the builds in any way...

docker compose -f ./go_instrumentation/docker-compose.yml up

Interacting

Prometheus

Visit localhost:9090 to view the prometheus UI.

Servers

Each server exposes a hello endpoint that you can interact with. Eg,

curl -s localhost:8002/hello | jq
{
  "ip": "172.26.0.1:59192",
  "message": "Hello From Go!"
}

curl -s localhost:8003/hello | jq
{
  "ip": "172.26.0.1:63558",
  "message": "Hello From Go!"
}

Some have artificial timeouts to observe metric differences with prometheus.

About

Just a sandbox for messing around with prometheus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published