Skip to content

itayB/aiohttp-prometheus

Repository files navigation

The purpose of this example is to demonstrate Prometheus client in aiohttp web server.

We will bring up a simple python aiohttp web-server container, Prometheus server and Grafana.

docker-compose build
docker-compose up

Open Grafana in http://localhost:3000, login with user admin and password admin.

Prometheus data-source (http://prometheus:9090) was already set for you.

request_processing_seconds_count{} as the metric.

To see the graph, perform some GET http://localhost/status via Chrome.

We will try to measure the 99 percentile, base on histogram and this post.

Testing

Run mypy google_login for a type checking.

About

Using Prometheus to measure HTTP web-server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published