prometheus-playground
prometheus-playground copied to clipboard
Prometheus Playground
Prometheus Playground
- Tape some scrapes in a YAML file:
scrapes:
- status_code: '200'
data: |
foo{color="red",size="small"} 4
foo{color="green",size="small"} 8
bar{color="green",size="xlarge"} 2
bar{color="blue",size="large"} 7
- status_code: '500'
data: 'Unexpected Error'
- status_code: '200'
data: |
foo{color="blue",size="small"} 16
foo{color="red",size="large"} 5
bar{color="red",size="small"} 5
- Run a fake service and a Prometheus instance:
docker-compose -f scenario-01/docker-compose.yaml up
- Wait until all scrapes are consumed and explore the data:
open http://localhost:55055/
Read more about the playground here.