Skip to content

Commit

Permalink
Add metrics for jsonrpc cache
Browse files Browse the repository at this point in the history
Add to allowed list
  • Loading branch information
dkeysil committed Mar 22, 2024
1 parent 73f5e71 commit 8ed6e33
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions domain/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ const (
MetricJSONRPCRequest = "jsonrpc.request"
MetricJSONRPCSuccess = "jsonrpc.success"
MetricJSONRPCThrottled = "jsonrpc.throttled"
MetricJSONRPCCacheError = "jsonrpc.cache.error"
MetricJSONRPCCacheHit = "jsonrpc.cache.hit"
MetricJSONRPCCacheMiss = "jsonrpc.cache.miss"
MetricJSONRPCCacheLatency = "jsonrpc.cache.latency"
MetricJSONRPCCacheSize = "jsonrpc.cache.size"
MetricJSONRPCCachePollError = "jsonrpc.cache.poll.error"
MetricJSONRPCCachePollSuccess = "jsonrpc.cache.poll.success"
MetricPublicAPIProxyLatency = "publicapi.latency"
MetricPublicAPIProxyRequest = "publicapi.request"
MetricPublicAPIProxySuccess = "publicapi.success"
Expand Down Expand Up @@ -142,6 +149,13 @@ var (
MetricJSONRPCRequest: nil,
MetricJSONRPCSuccess: nil,
MetricJSONRPCThrottled: nil,
MetricJSONRPCCacheError: nil,
MetricJSONRPCCacheHit: nil,
MetricJSONRPCCacheMiss: nil,
MetricJSONRPCCacheLatency: nil,
MetricJSONRPCCacheSize: nil,
MetricJSONRPCCachePollError: nil,
MetricJSONRPCCachePollSuccess: nil,
MetricPublicAPIProxyLatency: nil,
MetricPublicAPIProxyRequest: nil,
MetricPublicAPIProxySuccess: nil,
Expand Down Expand Up @@ -171,5 +185,7 @@ var (
MetricJSONRPCRequest,
MetricJSONRPCSuccess,
MetricJSONRPCThrottled,
MetricJSONRPCCacheHit,
MetricJSONRPCCacheMiss,
}
)

0 comments on commit 8ed6e33

Please sign in to comment.