2024-06-28 10:34:57 +00:00
|
|
|
{.push raises: [].}
|
2022-10-20 16:09:40 +00:00
|
|
|
|
|
|
|
import metrics
|
|
|
|
|
|
|
|
declarePublicGauge waku_store_errors, "number of store protocol errors", ["type"]
|
|
|
|
declarePublicGauge waku_store_queries, "number of store queries received"
|
|
|
|
|
2024-09-20 11:23:53 +00:00
|
|
|
## "query-db-time" phase considers the time when node performs the query to the database.
|
|
|
|
## "send-store-resp-time" phase is the time when node writes the store response to the store-client.
|
2024-09-06 09:33:15 +00:00
|
|
|
declarePublicGauge waku_store_time_seconds,
|
|
|
|
"Time in seconds spent by each store phase", labels = ["phase"]
|
|
|
|
|
2022-10-20 16:09:40 +00:00
|
|
|
# Error types (metric label values)
|
|
|
|
const
|
|
|
|
dialFailure* = "dial_failure"
|
|
|
|
decodeRpcFailure* = "decode_rpc_failure"
|
2022-11-09 17:50:18 +00:00
|
|
|
peerNotFoundFailure* = "peer_not_found_failure"
|
|
|
|
emptyRpcQueryFailure* = "empty_rpc_query_failure"
|
2022-11-24 18:42:19 +00:00
|
|
|
emptyRpcResponseFailure* = "empty_rpc_response_failure"
|