mirror of https://github.com/waku-org/nwaku.git
chore(store): remove obsolete metrics and error labels
This commit is contained in:
parent
41b2f87f68
commit
0050deed05
|
@ -7,7 +7,7 @@ else:
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, times, sequtils, options, algorithm],
|
std/options,
|
||||||
stew/results,
|
stew/results,
|
||||||
chronicles,
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
|
|
|
@ -6,20 +6,14 @@ else:
|
||||||
import metrics
|
import metrics
|
||||||
|
|
||||||
|
|
||||||
declarePublicGauge waku_store_messages, "number of historical messages", ["type"]
|
|
||||||
declarePublicGauge waku_store_errors, "number of store protocol errors", ["type"]
|
declarePublicGauge waku_store_errors, "number of store protocol errors", ["type"]
|
||||||
declarePublicGauge waku_store_queries, "number of store queries received"
|
declarePublicGauge waku_store_queries, "number of store queries received"
|
||||||
declarePublicHistogram waku_store_insert_duration_seconds, "message insertion duration"
|
|
||||||
declarePublicHistogram waku_store_query_duration_seconds, "history query duration"
|
|
||||||
|
|
||||||
|
|
||||||
# Error types (metric label values)
|
# Error types (metric label values)
|
||||||
const
|
const
|
||||||
invalidMessage* = "invalid_message"
|
|
||||||
insertFailure* = "insert_failure"
|
|
||||||
retPolicyFailure* = "retpolicy_failure"
|
|
||||||
dialFailure* = "dial_failure"
|
dialFailure* = "dial_failure"
|
||||||
decodeRpcFailure* = "decode_rpc_failure"
|
decodeRpcFailure* = "decode_rpc_failure"
|
||||||
peerNotFoundFailure* = "peer_not_found_failure"
|
peerNotFoundFailure* = "peer_not_found_failure"
|
||||||
emptyRpcQueryFailure* = "empty_rpc_query_failure"
|
emptyRpcQueryFailure* = "empty_rpc_query_failure"
|
||||||
emptyRpcResponseFailure* = "empty_rpc_response_failure"
|
emptyRpcResponseFailure* = "empty_rpc_response_failure"
|
||||||
|
|
Loading…
Reference in New Issue