Prometheus API
It is possible to use /metrics
REST API endpoint to read all metrics exposed
to Prometheus or to any tool that is compatible with it.
API related metrics
There are a set of metrics provieded by insights-operator-utils
library, all
of them related with the API usage. These are the API metrics exposed:
api_endpoints_requests
the total number of requests per endpointapi_endpoints_response_time
API endpoints response timeapi_endpoints_status_codes
a counter of the HTTP status code responses returned back by the service
Additionally it is possible to consume all metrics provided by Go runtime. There
metrics start with go_
and process_
prefixes.
Metrics namespace
As explained in the configuration section of this documentation, a namespace can be provided in order to act as a prefix to the metric name. If no namespace is provided in the configuration, the metrics will be exposed as described in this documentation.
Grafana dashboard
Metrics exported via Prometheus API are visualized on two Grafana dashboards: