Closed samika98 closed 6 months ago
If a stream gets polled multiple times then these counts can be off, in the case where we want expect only one state for a stream. Number of requests = Number of streams created Number of streams created != cas_request_failed + cas_request_success + cas_request_pending.
In the case where everything happens at 300 tps we should get Number of streams created = cas_request_success.
Description
We need metrics for keeping track of how many streams have been anchored/errored or are in pending state. This is done in order to track performance of anchoring.
How Has This Been Tested?
Tested locally by creating a ceramic node with config where prometheus exporter was turned on.
TYPE js_ceramic_cas_request_success_total counter
js_ceramic_cas_request_success_total 7513
PR checklist
Before submitting this PR, please make sure:
References:
Please list relevant documentation (e.g. tech specs, articles, related work etc.) relevant to this change, and note if the documentation has been updated.