summaryrefslogtreecommitdiff
path: root/workspace_helpers.bzl
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2021-05-20 17:16:17 +0100
committerGerhard Lazu <gerhard@lazu.co.uk>2021-06-22 14:14:21 +0100
commitc7971252cd440513cf4034a0ca34a89c0c8b227d (patch)
treed9e4440405e6eaa224d89ec562b4a7b17969774f /workspace_helpers.bzl
parent0cbef999cceea632a953111c955548f20d6fdc4f (diff)
downloadrabbitmq-server-git-c7971252cd440513cf4034a0ca34a89c0c8b227d.tar.gz
Global counters per protocol + protocol AND queue_type
This way we can show how many messages were received via a certain protocol (stream is the second real protocol besides the default amqp091 one), as well as by queue type, which is something that many asked for a really long time. The most important aspect is that we can also see them by protocol AND queue_type, which becomes very important for Streams, which have different rules from regular queues (e.g. for example, consuming messages is non-destructive, and deep queue backlogs - think billions of messages - are normal). Alerting and consumer scaling due to deep backlogs will now work correctly, as we can distinguish between regular queues & streams. This has gone through a few cycles, with @mkuratczyk & @dcorbacho covering most of the ground. @dcorbacho had most of this in https://github.com/rabbitmq/rabbitmq-server/pull/3045, but the main branch went through a few changes in the meantime. Rather than resolving all the conflicts, and then making the necessary changes, we (@gerhard + @kjnilsson) took all learnings and started re-applying a lot of the existing code from #3045. We are confident in this approach and would like to see it through. We continued working on this with @dumbbell, and the most important changes are captured in https://github.com/rabbitmq/seshat/pull/1. We expose these global counters in rabbitmq_prometheus via a new collector. We don't want to keep modifying the existing collector, which grew really complex in parts, especially since we introduced aggregation, but start with a new namespace, `rabbitmq_global_`, and continue building on top of it. The idea is to build in parallel, and slowly transition to the new metrics, because semantically the changes are too big since streams, and we have been discussing protocol-specific metrics with @kjnilsson, which makes me think that this approach is least disruptive and... simple. While at this, we removed redundant empty return value handling in the channel. The function called no longer returns this. Also removed all DONE / TODO & other comments - we'll handle them when the time comes, no need to leave TODO reminders. Pairs @kjnilsson @dcorbacho @dumbbell (this is multiple commits squashed into one) Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
Diffstat (limited to 'workspace_helpers.bzl')
-rw-r--r--workspace_helpers.bzl11
1 files changed, 11 insertions, 0 deletions
diff --git a/workspace_helpers.bzl b/workspace_helpers.bzl
index a4a3c7b254..5fde8d77b5 100644
--- a/workspace_helpers.bzl
+++ b/workspace_helpers.bzl
@@ -236,6 +236,17 @@ erlang_lib(
sha256 = "5721c6b6d50122d8f68cccac712caa1231f97894bab779eff5ff0f886cb44648",
)
+ github_bazel_erlang_lib(
+ name = "seshat",
+ org = "rabbitmq",
+ ref = "main",
+ version = "main",
+ extra_apps = [
+ "sasl",
+ "crypto",
+ ],
+ )
+
hex_pm_bazel_erlang_lib(
name = "stdout_formatter",
version = "0.2.4",