Prometheus API
It is possible to use /api/v1/metrics REST API endpoint to read all metrics exposed to Prometheus
or to any tool that is compatible with it.
Currently, the following metrics are exposed:
consumed_messagesthe total number of messages consumed from Kafkaconsuming_errorsthe total number of errors during consuming messages from Kafkasuccessful_messages_processing_timethe time to process successfully messagefailed_messages_processing_timethe time to process message faillast_checked_timestamp_lag_minutesshows how slow we get messages from clustersproduced_messagesthe total number of produced messages sent to Payload Tracker’s Kafka topicwritten_reportsthe total number of reports written to the storagefeedback_on_rulesthe total number of left feedbacksql_queries_counterthe total number of SQL queriessql_queries_durationsthe SQL queries durations
Additionally it is possible to consume all metrics provided by Go runtime. There metrics start with
go_ and process_ prefixes.
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_requeststhe total number of requests per endpointapi_endpoints_response_timeAPI endpoints response timeapi_endpoints_status_codesa counter of the HTTP status code responses returned back by the service
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.