Skip to content

transactions_count metric is missing before the first transaction #813

@resonant-riches

Description

@resonant-riches

Instead of reporting a value of zero if there have been no transactions with the respective status, the metric is missing entirely. This means that an increase expression on the transactions_count_total metric will be off by one after a restart of the oracle service - it will not count the first transaction.

Actual behaviour (6.0.2, built from source):

# HELP lido_oracle_transactions_count_total Total count of transactions. Success or failure
# TYPE lido_oracle_transactions_count_total counter
lido_oracle_transactions_count_total{status="Status.SUCCESS"} 1.0

Expected behaviour:

# HELP lido_oracle_transactions_count_total Total count of transactions. Success or failure
# TYPE lido_oracle_transactions_count_total counter
lido_oracle_transactions_count_total{status="Status.SUCCESS"} 1.0
lido_oracle_transactions_count_total{status="Status.FAILURE"} 0.0

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