Commit Graph

24 Commits

Author SHA1 Message Date
Philip Kuryloski 9c6b85c98b Consume Ra as a bazel workspace
Since https://github.com/rabbitmq/ra/pull/227 has been merged
2021-10-05 11:04:12 +02:00
Loïc Hoguin 43d40231b9
Upgrade to Observer CLI 1.7.1
Previous version was not working on Windows due to a crash.
2021-09-21 13:49:58 +02:00
Philip Kuryloski 5fd9d1f638 Use Ranch 2.1.0 in bazel build
Matches 063d32626d
2021-09-10 14:46:36 +02:00
Philip Kuryloski fc17fbcbc3 Import osiris as a native bazel library
As osiris now declares its own bazel build
https://github.com/rabbitmq/osiris/pull/48
2021-08-30 11:03:49 +02:00
Philip Kuryloski 04fecb6f8a Add hashes for some pinned dependencies in bazel 2021-07-09 09:49:59 +02:00
Philip Kuryloski 81c7464b06 Use prometheus 4.8.1 from hex.pm 2021-07-09 09:49:59 +02:00
Philip Kuryloski bc77ed7d95 Use gen_batch_server from hex.pm 2021-06-24 10:11:39 +02:00
Gerhard Lazu c7971252cd
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>
2021-06-22 14:14:21 +01:00
Philip Kuryloski 40a7a1c24c Bring rabbit:logger_SUITE online in bazel and bump mismatched deps 2021-06-18 14:41:14 +02:00
Philip Kuryloski f9d114ad75 dialyze rabbit 2021-05-28 13:27:21 +02:00
Philip Kuryloski cca9a45480 Reference osiris as a github repo in bazel
This doesn't appear to be a problem in CI, but I locally had a stale
copy of it. If I'm not mistaken the github variant will cache less aggressively.
2021-05-27 12:38:20 +02:00
Philip Kuryloski 98e71c45d8 Perform xref checks on many tier-1 plugins 2021-05-21 12:03:22 +02:00
Philip Kuryloski 3b9359a41f Update systemd dependency
Fixes https://github.com/rabbitmq/rabbitmq-server/issues/3058
2021-05-21 11:49:37 +02:00
Philip Kuryloski 62eabccfc0 Turn off warnings as errors for gun dependency in bazel 2021-05-17 11:32:44 +02:00
Philip Kuryloski 6d59d5d597 Run the "bats" tests for deps/rabbit in bazel 2021-05-14 10:39:25 +02:00
Philip Kuryloski 3d6230432a Add rabbitmq_trust_store to bazel 2021-05-07 13:01:01 +02:00
Philip Kuryloski d61aa69039 Add rabbitmq_prometheus to bazel 2021-05-05 11:43:03 +02:00
Philip Kuryloski fa83d42272 Add rabbitmq_peer_discovery_etcd tests to bazel 2021-04-19 13:47:00 +02:00
Philip Kuryloski 36321ee126 Test rabbitmq_mqtt with bazel 2021-04-19 09:50:42 +02:00
Philip Kuryloski f66f60bc38 Add rabbitmq_federation_management to bazel 2021-04-14 08:08:06 +02:00
Philip Kuryloski 16e96f6010 Fix rabbit -> systemd dependency in bazel 2021-04-09 15:53:51 +02:00
Philip Kuryloski 64f6c18cb8 Add the rabbitmq_auth_backend_oauth2 suite
requires recent @bazel-erlang updates
2021-03-31 19:11:32 +02:00
Philip Kuryloski 128785b863 Adopt enhancements from @bazel-erlang
- no need to test version of ra since +debug_info is now default
- adjust the way default erlc_opts are handled
2021-03-31 10:06:56 +02:00
Philip Kuryloski 388654c542
Add a partial Bazel build (#2938)
Adds WORKSPACE.bazel, BUILD.bazel & *.bzl files for partial build & test with Bazel. Introduces a build-time dependency on https://github.com/rabbitmq/bazel-erlang
2021-03-29 11:01:43 +02:00