Add high-level duration metrics to the Operations service
Before raising this MR, consider whether the following are required, and complete if so:
-
Unit tests -
Metrics -
Documentation update(s)
If not required, please explain in brief why not. I'll add unit tests for these and the various other untested metrics in a separate MR in the coming days.
Description
This MR adds duration metrics for the full request handling time for each of the Operations service requests. It also adds a very simple example dashboard for these metrics.
Validation
Run BuildGrid using the docker-compose-cache-monitoring.yaml
file. Send it some work, and make some Operations service requests using tox -e venv -- bgd operation
. Look in the dashboards in grafana (http://localhost:3000/ admin:admin) to check that there are duration metrics for the Operations requests you made.
Issues addressed
Closes #359 (closed)