refactor: make oof metric more generic to follow the standard - #110
Conversation
|
👋 kirtan-amin, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
📊 API Diff Results
|
71cf95c to
7cdfda3
Compare
|
| }, []string{"chainID", "senderAddress"}) | ||
| promAttemptError = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
| Name: "tx_manager_attempt_error_total", | ||
| Help: "Number of transaction broadcast/confirm attempts that failed, labelled by cause. For cause=\"insufficient_funds\" the sending address was rejected by an RPC node for insufficient funds; it increments on every retry while the address remains underfunded, so a sustained rate indicates an address needs topping up. The sending address is intentionally not a label (unbounded cardinality) - find it via the fromAddress key in the TXM warn log.", |
There was a problem hiding this comment.
Is it really unbounded cardinality? The address is pretty much set per chain per node. It's not like an execution ID that changes every time. The reason it's helpful here is because getting info from logs assumes we have log streams enabled across all products and all NOPs. If we don't, we won't have access to the logs to get this address from. We could technically get it from the node_balance metric instead but this would imply we also have the issue with cardinality on that metric as well
There was a problem hiding this comment.
this was my initial thought but @bukata-sa suggested we might run into issues due to possible high cardinality now / in the future. By the sounds of it this isn't an issue so if you are happy we can add it back in?
There was a problem hiding this comment.
Ya if the node_balance metric is any indicator this should be fine keep as a label
There was a problem hiding this comment.
ok cool, pushed the changes
7cdfda3 to
f334ba0
Compare
Description
Update the insufficient funds metric to be more generic by using the cause label pattern that is used for our currently deployed metrics. This also removes fromAddress due to it possible having a high cardinality in the future.
CCIP-11890
Requires Dependencies
Resolves Dependencies