summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_prometheus
Commit message (Collapse)AuthorAgeFilesLines
* Add a workflow to compare the bazel/erlang.mk outputRin Kuryloski2023-05-152-1/+3
| | | | To catch any drift between the builds
* Prometheus: handle scenarios when no listener is configuredMichael Klishin2023-05-061-5/+27
| | | | Start a plain TCP one with all defaults.
* Support TLS-only listener for PrometheusChunyi Lyu2023-05-055-45/+59
| | | | | | - tcp listener can be turned off by setting 'prometheus.tcp.listener = none' - config schema follows web_mqtt and web_stomp
* Replace globs in bazel with explicit lists of filesRin Kuryloski2023-04-251-10/+32
| | | | As this is preferred in rules_erlang 3.9.14
* Restore the original -include_lib statements from before #6466Rin Kuryloski2023-04-201-0/+2
| | | | | | since this broke erlang_ls requires rules_erlang 3.9.13
* Use gazelle generated bazel filesRin Kuryloski2023-04-172-22/+141
| | | | | | | | | | | Bazel build files are now maintained primarily with `bazel run gazelle`. This will analyze and merge changes into the build files as necessitated by certain code changes (e.g. the introduction of new modules). In some cases there hints to gazelle in the build files, such as `# gazelle:erlang...` or `# keep` comments. xref checks on plugins that depend on the cli are a good example.
* Ignore warnings when building plt files for dependenciesRin Kuryloski2023-04-171-0/+1
| | | | | As we don't generally care if a dependency has warnings, only the target
* Rename the tanzu cli scope to vmwareRin Kuryloski2023-02-162-3/+3
| | | | And update other references to commercial editions
* Fix descriptions of auth metrics.Ilia Kurenkov2023-02-111-4/+4
|
* Cleanup dialyzer callsAlexey Lebedeff2023-02-061-0/+1
| | | | | | - Use the same base .plt everywhere, so there is no need to list standard apps everywhere - Fix typespecs: some typos and the use of not-exported types
* Avoid the need to pass package name to rabbitmq_integration_suiteRin Kuryloski2023-01-181-4/+0
|
* Use improved assert_suites2 macro from rules_erlang 3.9.0Rin Kuryloski2023-01-181-16/+18
|
* Merge pull request #6879 from rabbitmq/dialyzer-warnings-rabbitmq-prometheusMichael Klishin2023-01-136-63/+43
|\ | | | | Fix all dialyzer warnings in rabbitmq_prometheus
| * Fix all dialyzer warnings in rabbitmq_prometheusAlexey Lebedeff2023-01-136-63/+43
| |
* | Update prometheus.erl to 4.10.0Michal Kuratczyk2023-01-131-0/+6
|/ | | | | | Since 4.10.0 was released specifically to address an issue we encountered in RabbitMQ integration with prometheus.erl, new test was added to validate this functionality in the future.
* WordingMichael Klishin2023-01-031-1/+1
|
* DRY: Link docs for `/metrics/detailed` endpoint to website.Ilia Kurenkov2023-01-031-265/+1
|
* (c) year bump: 2022 => 2023Michael Klishin2023-01-018-8/+8
|
* Yolo-replace format stringsLuke Bakken2022-10-102-3/+3
| | | | | | | | Replaces `~s` and `~p` with their unicode-friendly counterparts. ``` git ls-files *.erl | xargs sed -i.ORIG -e s/~s>/~ts/g -e s/~p>/~tp/g ```
* rabbit_prometheus_http_SUITE: Update tests for new CQsLoïc Hoguin2022-09-271-3/+3
| | | | CQs without consumers will have only one message in memory.
* Merge pull request #5463 from rabbitmq/global-metrics-valuesMichael Klishin2022-09-121-17/+17
|\ | | | | Move message rate metrics from aggregated to global counters
| * Move message rate metrics from channel/queue aggregation to global countersConnor Rogers2022-08-081-17/+17
| |
* | Merge pull request #5449 from rabbitmq/grafana-9-supportIliia Khaprov - VMware2022-08-2413-10566/+14828
|\ \ | |/ | | Update RabbitMQ Dashboards to support latest Grafana versions
| * Add README.md for creating/updating dashboardsConnor Rogers2022-08-051-0/+39
| |
| * Fix overview graphs in Grafana 9Connor Rogers2022-08-051-5/+0
| | | | | | | | '-1' is no longer accepted as of Grafana 9, and causes a console error when rendering
| * Fix dist link graphConnor Rogers2022-08-051-4/+4
| | | | | | | | | | | | Both directions of the link were showing as one entry instead of two. This is beacuse of https://github.com/flant/grafana-statusmap/issues/277
| * Set time series to show all series in tooltipConnor Rogers2022-08-057-70/+70
| |
| * Take dashboard definitions straight from exported Grafana for simplicityConnor Rogers2022-08-059-136/+146
| |
| * Migrate from deprecated panels in GrafanaConnor Rogers2022-08-058-10440/+14657
| |
| * Update to supported Grafana and Prometheus versionsConnor Rogers2022-08-0510-20/+21
| |
* | Rename run_queues_length_total to run_queues_lengthDavid Ansari2022-08-241-1/+1
| | | | | | | | | | It's a gauge, not a counter. @deadtrickster fixed the bug in https://github.com/deadtrickster/prometheus.erl/commit/d0feb0df58825a277c55e79ba1b39d65499aab32 See #4380
* | Fix a typo in a comment in prometheus_rabbitmq_core_metrics_collectorPéter Gömöri2022-08-231-1/+1
| |
* | Remove test code which depended on the `quorum_queue` feature flagsJean-Sébastien Pédron2022-08-011-1/+0
|/ | | | These checks are now irrelevant as the feature flag is required.
* Add process_start_time_seconds metrics. See #4539process_start_time_seconds-4539Iliia Khaprov2022-07-132-1/+66
|
* Use the new xref2 macro from rules_erlangPhilip Kuryloski2022-06-091-1/+1
| | | | That adopts the modern erlang.mk xref behaviour
* Make rabbitmq-server work with rules_erlang 3Philip Kuryloski2022-06-081-2/+1
| | | | | | | | | | | | | | | | | | | | Also rework elixir dependency handling, so we no longer rely on mix to fetch the rabbitmq_cli deps Also: - Specify ra version with a commit rather than a branch - Fixup compilation options for erlang 23 - Add missing ra reference in MODULE.bazel - Add missing flag in oci.yaml - Reduce bazel rbe jobs to try to save memory - Use bazel built erlang for erlang git master tests - Use the same cache for all the workflows but windows - Avoid using `mix local.hex --force` in elixir rules - Fetching seems blocked in CI, and this should reduce hex api usage in all builds, which is always nice - Remove xref and dialyze tags since rules_erlang 3 includes them in the defaults
* Update Erlang.mk and switch to new xref codeLoïc Hoguin2022-05-311-6/+0
|
* WordingMichael Klishin2022-04-262-2/+2
|
* Expose head_message_timestamp via Prometheus plugin as wellPéter Gömöri2022-04-262-0/+2
| | | | | | It is already exposed via rabbitmqctl and the API. It is also exposed by old or unofficial prometheus plugins and other monitoring integrations (DataDog).
* Revert "Correct a double quote introduced in #4603"Michael Klishin2022-04-203-0/+556
| | | | | | This reverts commit 6a44e0e2efe424701777c3946f6e64398241b62d. That wiped a lot of files unintentionally
* Correct a double quote introduced in #4603Michael Klishin2022-04-203-556/+0
|
* Replace files with symlinksLuke Bakken2022-04-152-143/+2
| | | | This prevents duplicated and out-of-date instructions.
* Remove the CQv1 disabled stats from management/PrometheusLoïc Hoguin2022-04-053-10/+1
|
* Bump (c) yearMichael Klishin2022-03-218-8/+8
|
* Add note about missed Prometheus counter updatesDavid Ansari2022-02-281-0/+5
| | | | | | | | | | | | | | | Currently, the quorum queue state machine updates counters via mod_call effects which are not guaranteed to be executed. They are updated via mod_call effects such that only the leader increments the counter (and not the followers). In certain failure scenarios when dead-lettering lots of messages at the same time, these mod_call effects might not be executed. Hence, one shouldn't rely that counters for dead lettered messages and dead lettered confirmed messages match up 100% even though all dead-lettered messages were confirmed eventually.
* Add Prometheus metrics for dead-lettered messagesDavid Ansari2022-02-281-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > curl -s localhost:15692/metrics | grep rabbitmq_global_messages_dead_lettered \# TYPE rabbitmq_global_messages_dead_lettered_delivery_limit_total counter \# HELP rabbitmq_global_messages_dead_lettered_delivery_limit_total Total number of messages dead-lettered due to delivery-limit exceeded rabbitmq_global_messages_dead_lettered_delivery_limit_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_least_once"} 0 rabbitmq_global_messages_dead_lettered_delivery_limit_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_delivery_limit_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="disabled"} 0 \# TYPE rabbitmq_global_messages_dead_lettered_expired_total counter \# HELP rabbitmq_global_messages_dead_lettered_expired_total Total number of messages dead-lettered due to message TTL exceeded rabbitmq_global_messages_dead_lettered_expired_total{queue_type="rabbit_classic_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_expired_total{queue_type="rabbit_classic_queue",dead_letter_strategy="disabled"} 0 rabbitmq_global_messages_dead_lettered_expired_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_least_once"} 0 rabbitmq_global_messages_dead_lettered_expired_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_expired_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="disabled"} 0 \# TYPE rabbitmq_global_messages_dead_lettered_rejected_total counter \# HELP rabbitmq_global_messages_dead_lettered_rejected_total Total number of messages dead-lettered due to basic.reject or basic.nack rabbitmq_global_messages_dead_lettered_rejected_total{queue_type="rabbit_classic_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_rejected_total{queue_type="rabbit_classic_queue",dead_letter_strategy="disabled"} 0 rabbitmq_global_messages_dead_lettered_rejected_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_least_once"} 0 rabbitmq_global_messages_dead_lettered_rejected_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_rejected_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="disabled"} 0 \# TYPE rabbitmq_global_messages_dead_lettered_confirmed_total counter \# HELP rabbitmq_global_messages_dead_lettered_confirmed_total Total number of messages dead-lettered and confirmed by target queues rabbitmq_global_messages_dead_lettered_confirmed_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_least_once"} 0 \# TYPE rabbitmq_global_messages_dead_lettered_maxlen_total counter \# HELP rabbitmq_global_messages_dead_lettered_maxlen_total Total number of messages dead-lettered due to overflow drop-head or reject-publish-dlx rabbitmq_global_messages_dead_lettered_maxlen_total{queue_type="rabbit_classic_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_maxlen_total{queue_type="rabbit_classic_queue",dead_letter_strategy="disabled"} 0 rabbitmq_global_messages_dead_lettered_maxlen_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="at_most_once"} 0 rabbitmq_global_messages_dead_lettered_maxlen_total{queue_type="rabbit_quorum_queue",dead_letter_strategy="disabled"} 0 A few notes: * dead_letter_strategy 'disabled' means either user did not configure dead-letter-exchange or configured dead-letter-exchange does not exist. * Only time series that make sense get output. Example 1: Combination of 'at_least_once' and 'maxlen' will always be 0. Hence, we omit that time series. Example 2: 'confirmed' makes only sense with quorum queues and 'at_least_once'. Example 3: 'delivery_limit' makes only sense with quorum queues. * Users get to know *why* messages were dead-lettered. * Before this commit, there was no possibilities for users to alert based on messages being dropped from the head of the queue when overflow=drop-head. * Users can now easily create alerts: Example 1: Message gets silently dropped (i.e. dead_letter_strategy='disabled') instead of actually dead-lettered. Example 2: Detect dead-letter topology misconfigurations. Example 3: Messages expire Example 4: Messages overflow Example 5: Messages requeued too often * Stream queues by definition do not dead-letter.
* Tighten up dialyzer usagePhilip Kuryloski2022-02-241-2/+7
| | | | now that rules_erlang no longer cascades up dialyzer warnings from deps
* Ignore dialyzer warnings for most appsPhilip Kuryloski2022-02-211-0/+1
|
* Use rules_erlang v2Philip Kuryloski2022-01-181-11/+11
| | | | | | | | bazel-erlang has been renamed rules_erlang. v2 is a substantial refactor that brings Windows support. While this alone isn't enough to run all rabbitmq-server suites on windows, one can at least now start the broker (bazel run broker) and run the tests that do not start a background broker process
* Use `rabbitmq_cluster_` prefix for cluster-wide metricsvhost-exchange-countAlexey Lebedeff2021-11-243-18/+20
|