Add zabbix monitoring for the stg autosign service #13646

Open
opened 2026-10-28 14:17:08 +00:00 by jcline · 2 comments

Description of request

The staging autosign service is now deployed and functional (for RPMs, at least). This new service exposes a Prometheus HTTP metrics endpoint at localhost:9000.

I'd like to start ingesting the metrics into staging Zabbix so we can have monitoring before rolling out to production. It exposes the following metrics:

AMQP message metrics

There may be some overlap here from the general AMQP queue metrics

  • amqp_reconnects (counter): Count of times the AMQP connection has needed to be re-established
  • messages_received (counter): Count of AMQP messages received; this includes re-deliveries from requeued messages
  • messages_active (gauge): The number of AMQP messages currently being processed. Ranges from 0 to the value configured for AMQP prefetch count.
  • messages_succeeded (counter): Count of AMQP messages successfully processed
  • messages_failed (counter): Count of AMQP messages that were not processed successfully and requeued
  • messages_dropped (counter): Count of AMQP messages that were dropped because they were invalid

RPM metrics

  • rpms_active (gauge): The number of RPMs currently being signed
  • rpms_signed (count): The total number of RPMs that have been signed since the service started
  • rpms_failed (count): The total number of RPM signing failures that occurred for any reason
  • rpms_artifact_size (gauge): The size, in bytes, of the RPMs being actively signed
  • rpms_sign_duration (histogram): The time it took, in seconds, to run rpmsign

RPM metrics for mass re-signs

  • rpms_resign_active (gauge): The number of RPMs currently being signed that are part of a mass re-sign of a Koji tag
  • rpms_resign_queried (gauge, dynamic on Koji tag being queried): The number of RPMs in the tag that have been queried in Koji for a signature
  • rpms_resign_missing_signature (gauge, dynamic on Koji tag being queried): The number of RPMs in the tag that have been found to need a new signature

OSTree metrics

  • ostree_sign_duration (histogram): The time, in seconds, it took to run ostree gpg-sign
  • ostree_signed (counter, dynamic on the ostree ref): The count of OSTree commits signed
  • ostree_failed (counter): The total number of OSTree sign requests that failed and will be retried
  • ostree_skipped (counter): The total number of OSTree sign requests that were skipped because they were invalid or not configured

CoreOS metrics

  • coreos_artifacts_signed (counter): The total number of CoreOS artifacts that have been signed
  • coreos_succeeded (counter): The total number of CoreOS sign requests that succeeded
  • coreos_failed (counter): The total number of CoreOS sign requests that failed and will be retried
  • coreos_skipped (counter): The total number of CoreOS sign requests that were skipped because they were invalid
  • coreos_sign_duration (histogram): The time, in seconds, it took to sign a CoreOS artifact

Affected Service or System

stg autosign01

Deadline

No response

Additional Context or Error Logs

No response

### Description of request The staging autosign service is now deployed and functional (for RPMs, at least). This new service exposes a Prometheus HTTP metrics endpoint at localhost:9000. I'd like to start ingesting the metrics into staging Zabbix so we can have monitoring before rolling out to production. It exposes the following metrics: # AMQP message metrics There may be some overlap here from the general AMQP queue metrics - `amqp_reconnects` (counter): Count of times the AMQP connection has needed to be re-established - `messages_received` (counter): Count of AMQP messages received; this includes re-deliveries from requeued messages - `messages_active` (gauge): The number of AMQP messages currently being processed. Ranges from 0 to the value configured for AMQP prefetch count. - `messages_succeeded` (counter): Count of AMQP messages successfully processed - `messages_failed` (counter): Count of AMQP messages that were not processed successfully and requeued - `messages_dropped` (counter): Count of AMQP messages that were dropped because they were invalid # RPM metrics - `rpms_active` (gauge): The number of RPMs currently being signed - `rpms_signed` (count): The total number of RPMs that have been signed since the service started - `rpms_failed` (count): The total number of RPM signing failures that occurred for any reason - `rpms_artifact_size` (gauge): The size, in bytes, of the RPMs being actively signed - `rpms_sign_duration` (histogram): The time it took, in seconds, to run rpmsign ## RPM metrics for mass re-signs - `rpms_resign_active` (gauge): The number of RPMs currently being signed that are part of a mass re-sign of a Koji tag - `rpms_resign_queried` (gauge, dynamic on Koji tag being queried): The number of RPMs in the tag that have been queried in Koji for a signature - `rpms_resign_missing_signature` (gauge, dynamic on Koji tag being queried): The number of RPMs in the tag that have been found to need a new signature # OSTree metrics - `ostree_sign_duration` (histogram): The time, in seconds, it took to run ostree gpg-sign - `ostree_signed` (counter, dynamic on the ostree ref): The count of OSTree commits signed - `ostree_failed` (counter): The total number of OSTree sign requests that failed and will be retried - `ostree_skipped` (counter): The total number of OSTree sign requests that were skipped because they were invalid or not configured # CoreOS metrics - `coreos_artifacts_signed` (counter): The total number of CoreOS artifacts that have been signed - `coreos_succeeded` (counter): The total number of CoreOS sign requests that succeeded - `coreos_failed` (counter): The total number of CoreOS sign requests that failed and will be retried - `coreos_skipped` (counter): The total number of CoreOS sign requests that were skipped because they were invalid - `coreos_sign_duration` (histogram): The time, in seconds, it took to sign a CoreOS artifact ### Affected Service or System stg autosign01 ### Deadline _No response_ ### Additional Context or Error Logs _No response_
Member

@jcline OK, so this link should take you to the current form of the data.

I've implemented what I see in the output from curl -s http://localhost:9000 but much of what you ask for above is not in that output, e.g. OSTree failed/skipped is there, but not the other two. Is that to come later, or in some way dynamic?

As I see it:

  • AMQP is complete
  • RPMs are complete (using an avg sign duration instead of a histogram, I'll look at the quantiles later)
  • CoreOS has all the rates but I don't see sign_duration in the data
  • OSTree only failed/skipped in the data

Have a look at what's there so far and confirm, and let me the plan for the missing ones.

@jcline OK, so [this link](https://zabbix.stg.fedoraproject.org/zabbix.php?name=&evaltype=2&tags%5B0%5D%5Btag%5D=application&tags%5B0%5D%5Boperator%5D=0&tags%5B0%5D%5Bvalue%5D=siguldry&show_tags=3&tag_name_format=0&tag_priority=&state=-1&filter_name=&filter_show_counter=0&filter_custom_time=0&sort=name&sortorder=ASC&show_details=0&action=latest.view&hostids%5B%5D=10819) should take you to the current form of the data. I've implemented what I see in the output from `curl -s http://localhost:9000` but much of what you ask for above is not in that output, e.g. OSTree failed/skipped is there, but not the other two. Is that to come later, or in some way dynamic? As I see it: - AMQP is complete - RPMs are complete (using an avg sign duration instead of a histogram, I'll look at the quantiles later) - CoreOS has all the rates but I don't see sign_duration in the data - OSTree only failed/skipped in the data Have a look at what's there so far and confirm, and let me the plan for the missing ones.
Member

Additionally, I presume we'll want some host-level checks on running processes or similar? just to make sure the application is running at all. Is a "num_procs > 0" sufficient, or is there a better way to look at it?

Additionally, I presume we'll want some host-level checks on running processes or similar? just to make sure the application is running at all. Is a "num_procs > 0" sufficient, or is there a better way to look at it?
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
infra/tickets#13646
No description provided.