Skip to content

kristiankode/prometheus-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project for trying out prometheus and grafana.

Start with docker-compose up.

Generate metrics

Visit the web apps various endpoints to generate metrics.

  • /good-service-1: OK
  • /good-service-2: OK
  • /bad-service: 500 Internal server error
  • /unstable-service: 500 internal server error 50% of the time.
  • /unknown-service: 404 Not found

Grafana

Grafana can connect to prometheus on url http://prometheus:9090

PromQL

Query for getting error percentage for web app: sum by (path) (api_request_total{code=~"5.*"}) / sum by (path) (api_request_total)

Use in combination with visualization in kibana, e.g. Stat.

About

Setup for experimenting with prometheus and grafana. Includes simple web app with metrics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors