Skip to content

Add time to prove and time since last proof metrics #700

Open
@minhd-vu

Description

@minhd-vu

Currently the agglayer metrics look like:

# HELP check_tx_total Number of transactions checked
# TYPE check_tx_total counter
check_tx_total{rollup_id="1",otel_scope_name="kernel"} 429
# HELP execute_total Number of transactions executed
# TYPE execute_total counter
execute_total{rollup_id="1",otel_scope_name="kernel"} 429
# HELP send_tx_total Number of transactions received on the RPC
# TYPE send_tx_total counter
send_tx_total{rollup_id="1",otel_scope_name="rpc"} 429
# HELP settle_total Number of transactions settled
# TYPE settle_total counter
settle_total{rollup_id="1",otel_scope_name="kernel"} 429
# HELP target_info Target metadata
# TYPE target_info gauge
target_info{service_name="unknown_service",telemetry_sdk_language="rust",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="0.27.1"} 1
# HELP verify_signature_total Number of signature verifications
# TYPE verify_signature_total counter
verify_signature_total{rollup_id="1",type="tx",otel_scope_name="kernel"} 429
# HELP verify_zkp_total Number of ZKP verifications
# TYPE verify_zkp_total counter
verify_zkp_total{rollup_id="1",otel_scope_name="kernel"} 429

To increase observability, add metrics like:

  • time_since_last_proof (gauge, grouped by rollup_id) that tracks the last time a proof was verified
  • time_to_prove (histogram, grouped by rollup_id) that tracks the time it took to verify a proof tracked as a histogram
    • time from receiving the proof to time starting the proof verification
    • time recieved proof to time finished proof verification
  • certificate_size (histogram, grouped by rollup_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions