Skip to main content

Signatory Prometheus Metrics

Signatory exposes several Prometheus metrics to help operators monitor the health, performance, and usage of the service.

API Handler Metrics

These metrics track requests at the HTTP handler level, providing a high-level view of the signing API's performance and status.

MetricTypeLabelsDescription
sign_handler_requests_totalCounteraddress, statusTotal number of sign handler requests
sign_handler_request_duration_millisecondsHistogramaddress, statusTotal processing time for sign handler requests in milliseconds

Label values:

  • address: The Tezos public key hash of the key being used for signing.
  • status: The HTTP status code returned to the client (e.g., 200 for success, 403 for policy rejection, 400 for bad requests).

Vault Metrics

These metrics track interactions with the underlying cryptographic vaults (e.g., AWS KMS, YubiHSM, File).

MetricTypeLabelsDescription
signing_ops_totalCounteraddress, vault, op, kind, chain_idTotal number of signing operations completed
vault_sign_request_duration_millisecondsHistogramvault, address, op, chain_idVault signing request latencies in milliseconds
vault_sign_request_error_totalCountervault, code, chain_idTotal number of errors returned by the vault

Label values:

  • op: The sign request kind (e.g., generic, block, attestation, preattestation).
  • kind: The operation kind extracted from request contents (e.g., transaction, delegation, reveal). For non-generic requests, this usually matches op.
  • chain_id: The Tezos chain identifier.

Policy and Security Metrics

Metrics related to authorization and policy enforcement.

MetricTypeLabelsDescription
policy_violation_totalCounterviolation_type, address, operation_typeTotal count of operations rejected due to policy violations
watermark_rejection_totalCounteraddress, operation_type, chain_id, reasonTotal count of operations rejected due to watermark protection
authentication_failure_totalCounterstatus, auth_method, client_ipTotal count of failed authentication attempts

Watermark Metrics

For detailed information on watermark-related metrics, see Watermarks Documentation.