Skip to content

Monitoring & Observability with Grafana

The WebAPI publishes two metrics per endpoint, and the IMan dashboard for Grafana draws them live:

  1. response time, in milliseconds;
  2. requests per minute, which includes the requests that ended in an error.

Both come from the same two series the WebAPI serves at /IManWebAPI/metrics, realisable_webapi_request_total and realisable_webapi_request_time, labelled by endpoint, method and status code. Follow Installation & Setup first: nothing is drawn until Prometheus is scraping and the dashboard is imported.

Signing in

Grafana listens on port 3000 by default: open http://localhost:3000/ on the server. The initial user and password are both admin, and Grafana has you change the password on first sign-in.

The dashboard

The Realisable WebAPI dashboard: a row of response-time graphs, one per endpoint, above a single requests-per-minute graph, with the time range Last 2 minutes and an Endpoint drop-down at the top

  1. The top row is response time in milliseconds, one graph per endpoint.
  2. The bottom graph is requests per minute, every endpoint together.
  3. The drop-down at the top right, showing Last 2 minutes above, sets the time span of every graph.

Endpoints

The Endpoint drop-down at the top left chooses which endpoints the dashboard shows. Its list comes from the IMan database, through the SQL Server data source, so a new endpoint appears there as soon as it is saved.

The Endpoint drop-down open, listing the endpoints with a tick against the selected ones