2024-06-28 16:04:57 +05:30
|
|
|
{.push raises: [].}
|
2022-11-22 19:40:24 +01:00
|
|
|
|
|
|
|
import metrics
|
|
|
|
|
|
|
|
declarePublicGauge waku_archive_messages, "number of historical messages", ["type"]
|
|
|
|
declarePublicGauge waku_archive_errors, "number of store protocol errors", ["type"]
|
|
|
|
declarePublicGauge waku_archive_queries, "number of store queries received"
|
2024-03-16 00:08:47 +01:00
|
|
|
declarePublicHistogram waku_archive_insert_duration_seconds,
|
|
|
|
"message insertion duration"
|
2022-11-22 19:40:24 +01:00
|
|
|
declarePublicHistogram waku_archive_query_duration_seconds, "history query duration"
|
|
|
|
|
|
|
|
# Error types (metric label values)
|
|
|
|
const
|
|
|
|
invalidMessageOld* = "invalid_message_too_old"
|
|
|
|
invalidMessageFuture* = "invalid_message_future_timestamp"
|
|
|
|
insertFailure* = "insert_failure"
|
|
|
|
retPolicyFailure* = "retpolicy_failure"
|