Skip to content

Expose cumulative tx bytes as a Prometheus metric#6536

Open
dnadales wants to merge 3 commits intoleios-prototypefrom
dnadales/cumulative-tx-bytes-metric
Open

Expose cumulative tx bytes as a Prometheus metric#6536
dnadales wants to merge 3 commits intoleios-prototypefrom
dnadales/cumulative-tx-bytes-metric

Conversation

@dnadales
Copy link
Copy Markdown
Member

Add ledgerCumulativeTxBytes to LedgerQueries and wire it through
LedgerMetrics so that the periodic ledger metrics trace emits an
IntM "cumulativeTxBytes" gauge.

This creates a Prometheus metric cardano_node_metrics_cumulativeTxBytes_int
that can be used with rate() to compute confirmed tx throughput (txkB/s).

The field is read from shelleyCumulativeTxBytes on the ShelleyLedgerState
(added in ouroboros-consensus on the cumulative-tx-size branch). Byron
returns 0.
Picks up shelleyCumulativeTxBytes, the new top-level field on
ShelleyLedgerState that tracks cumulative transaction bytes on the
selected chain.
, ("delegMapSize", "Delegation map size")
[ ("utxoSize", "UTxO set size")
, ("delegMapSize", "Delegation map size")
, ("cumulativeTxBytes", "Cumulative transaction bytes on the selected chain")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants