Merge branch 'topic/christian/broker-backpressure-metrics'

* topic/christian/broker-backpressure-metrics:
  Add basic btest to verify that Broker peering telemetry is available.
  Add cluster framework telemetry for Broker's send-buffer use
  Add peer buffer update tracking to the Broker manager's event_observer
  Rename the Broker manager's LoggerAdapter
  Avoid race in the cluster/broker/publish-any btest
This commit is contained in:
Christian Kreibich 2025-04-25 10:02:58 -07:00
commit c1a5f70df8
16 changed files with 412 additions and 23 deletions

View file

@ -1135,6 +1135,20 @@ type BrokerStats: record {
num_ids_outgoing: count;
};
## Broker statistics for an individual peering.
##
type BrokerPeeringStats: record {
## The number of messages currently queued locally for transmission.
num_queued: count;
## The maximum number of messages queued in the recent
## :zeek:see:`Broker::buffer_stats_reset_interval` time interval.
max_queued_recently: count;
## The number of times the send buffer has overflowed.
num_overflows: count;
};
type BrokerPeeringStatsTable: table[string] of BrokerPeeringStats;
## Statistics about reporter messages and weirds.
##
## .. zeek:see:: get_reporter_stats