Closed aangelisc closed 3 weeks ago
We're currently lacking insight into key metrics that will aid us in understanding how HTTP data sources are used.
This PR ports the datasource_metrics_middleware from core Grafana which adds the following metrics under the plugins namespace:
plugins
datasource_request_total
datasource_request_duration_seconds
datasource_response_size_bytes
datasource_request_in_flight
We're currently lacking insight into key metrics that will aid us in understanding how HTTP data sources are used.
This PR ports the datasource_metrics_middleware from core Grafana which adds the following metrics under the
plugins
namespace:datasource_request_total
- a counter of the total number of outgoing requests for the data sourcedatasource_request_duration_seconds
- a histogram of the duration of outgoing requests for the data sourcedatasource_response_size_bytes
- a histogram of the size of the response body for the outgoing requestsdatasource_request_in_flight
- a gauge of the requests in flight for the data source