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.
Run mypy google_login
for a type checking.