How can I get metrics on requests per seconds with the metrics exposed by the starlette exporter. I have a Grafana instance, and have metrics like starlette_requests_total
and starlette_requests_in_progress
.
My scrape_interval
in my prometheus.yaml config file is 15s. However, I am only able to get data when I use
rate(starlette_requests_total{method="GET"}[4m]).
Any interval less than 4m returns no data.
I sent requests to the server but there seems to be no impact on the metrics.
New contributor
tikkacoder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.