-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose the same metrics for AMQP 1.0 connections as for AMQP 0.9.1 connections. Display the following AMQP 1.0 metrics on the Management UI: * Network bytes per second from/to client on connections page * Number of sessions/channels on connections page * Network bytes per second from/to client graph on connection page * Reductions graph on connection page * Garbage colletion info on connection page Expose the following AMQP 1.0 per-object Prometheus metrics: * rabbitmq_connection_incoming_bytes_total * rabbitmq_connection_outgoing_bytes_total * rabbitmq_connection_process_reductions_total * rabbitmq_connection_incoming_packets_total * rabbitmq_connection_outgoing_packets_total * rabbitmq_connection_pending_packets * rabbitmq_connection_channels The rabbit_amqp_writer proc: * notifies the rabbit_amqp_reader proc if it sent frames * hibernates eventually if it doesn't send any frames The rabbit_amqp_reader proc: * does not emit stats (update ETS tables) if no frames are received or sent to save resources when there are many idle connections.
- Loading branch information
Showing
10 changed files
with
188 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%% This Source Code Form is subject to the terms of the Mozilla Public | ||
%% License, v. 2.0. If a copy of the MPL was not distributed with this | ||
%% file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
%% | ||
%% Copyright (c) 2007-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved. | ||
|
||
-define(SIMPLE_METRICS, [pid, | ||
recv_oct, | ||
send_oct, | ||
reductions]). | ||
|
||
-define(OTHER_METRICS, [recv_cnt, | ||
send_cnt, | ||
send_pend, | ||
state, | ||
channels, | ||
garbage_collection]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.