@@ -9,22 +9,22 @@ import (
99var (
1010 archiveEventsProcessedTotalCounter = metrics .NewCounter ("orderflow_proxy_archive_events_processed_total" )
1111 archiveEventsProcessedErrCounter = metrics .NewCounter ("orderflow_proxy_archive_events_processed_err" )
12-
13- archiveEventsRPCErrors = metrics .NewCounter ("orderflow_proxy_events_rpc_errors " )
14- archiveEventsRPCSentCounter = metrics .NewCounter ( "orderflow_proxy_events_rpc_sent " )
15- archiveEventsRPCDuration = metrics .NewSummary ( "orderflow_proxy_events_rpc_duration_milliseconds " )
12+ // number of events sent successfully to orderflow archive. i.e. if we batch 10 events into 1 request this would be increment by 10
13+ archiveEventsRPCSentCounter = metrics .NewCounter ("orderflow_proxy_archive_events_sent_ok " )
14+ archiveEventsRPCDuration = metrics .NewSummary ( "orderflow_proxy_archive_rpc_duration_milliseconds " )
15+ archiveEventsRPCErrors = metrics .NewCounter ( "orderflow_proxy_archive_rpc_errors " )
1616
1717 confighubErrorsCounter = metrics .NewCounter ("orderflow_proxy_confighub_errors" )
1818
1919 shareQueueInternalErrors = metrics .NewCounter ("orderflow_proxy_share_queue_internal_errors" )
20- apiLocalRateLimits = metrics .NewCounter ("orderflow_proxy_api_local_rate_limits" )
20+
21+ apiLocalRateLimits = metrics .NewCounter ("orderflow_proxy_api_local_rate_limits" )
2122)
2223
2324const (
2425 apiIncomingRequestsByPeer = `orderflow_proxy_api_incoming_requests_by_peer{peer="%s"}`
2526 apiDuplicateRequestsByPeer = `orderflow_proxy_api_duplicate_requests_by_peer{peer="%s"}`
2627
27- shareQueuePeerTotalRequestsLabel = `orderflow_proxy_share_queue_peer_total_requests{peer="%s"}`
2828 shareQueuePeerStallingErrorsLabel = `orderflow_proxy_share_queue_peer_stalling_errors{peer="%s"}`
2929 shareQueuePeerRPCErrorsLabel = `orderflow_proxy_share_queue_peer_rpc_errors{peer="%s"}`
3030 shareQueuePeerRPCDurationLabel = `orderflow_proxy_share_queue_peer_rpc_duration_milliseconds{peer="%s"}`
@@ -44,11 +44,6 @@ func incAPILocalRateLimits() {
4444 apiLocalRateLimits .Inc ()
4545}
4646
47- func incShareQueueTotalRequests (peer string ) {
48- l := fmt .Sprintf (shareQueuePeerTotalRequestsLabel , peer )
49- metrics .GetOrCreateCounter (l ).Inc ()
50- }
51-
5247func incShareQueuePeerStallingErrors (peer string ) {
5348 l := fmt .Sprintf (shareQueuePeerStallingErrorsLabel , peer )
5449 metrics .GetOrCreateCounter (l ).Inc ()
0 commit comments