Stub for all CCX services based on Insights Core Messaging framework
View the Project on GitHub RedHatInsights/insights-ccx-messaging
This service is already configured to expose some metrics to Prometheus.
It relays in the class ccx_messaging.watchers.stats_watcher.StatsWatcher,
provided by the insights-ccx-messaging library.
This class is able to track and expose to Prometheus the following statistics:
ccx_consumer_received_total: a counter of the total amount of received
messages from Kafka that can be handled by the pipeline.ccx_consumer_filtered_total: a counter of the total amount of received messaged that
were filtered out due to be directed to a different service.ccx_downloaded_total: total amount of handled messages that contains a valid
and downloadable archive.ccx_engine_processed_total: total amount of archives processed by the
Insights library.ccx_published_total: total amount of processed results that has been
published to the outgoing Kafka topic.ccx_failures_total: total amount of individual events received but not
properly processed by the pipeline. It can include failures due to an invalid
URL for the archive, incorrect format of the downloaded archive, failure
during the processing…ccx_not_handled_total: total amount of received records that cannot be
handled by the pipeline, normally due to incompatible format or incorrect JSON
schema.ccx_engine_processed_timeout_total: total amount of archives that caused a timeout when processing.ccx_download_duration_seconds: histogram of the time that takes to download
each archive.ccx_process_duration_seconds: histogram of the time that takes to process
the archive after it has been downloaded.ccx_publish_duration_seconds: histogram of the time that takes to send the
new record to the outgoing Kafka topic after the archive has been processed.