-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expose alarms as Prometheus metrics #3312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
deps/rabbitmq_prometheus/src/collectors/prometheus_rabbitmq_alarm_metrics_collector.erl
Outdated
Show resolved
Hide resolved
deps/rabbitmq_prometheus/src/collectors/prometheus_rabbitmq_alarm_metrics_collector.erl
Outdated
Show resolved
Hide resolved
deps/rabbitmq_prometheus/src/collectors/prometheus_rabbitmq_alarm_metrics_collector.erl
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected but I think we can do better than "X_limit" for alarm names. Except for, perhaps, the file descriptor alarm, they do not represent limits but just watermarks.
Disk space can continue to decreased after the configured (low) watermark is crossed.
With names I was following the alarms names. Really straightforward mapping: {resource_limit, disk, _} -> rabbitmq_alarms_disk_limit.
I.e. follow rabbitmqctl/config conventions? |
There is no convention around configuration setting names: they were introduced at different points without much focus on making them consistent. I kept |
@Mergifyio backport v3.9.x v3.8.x |
Command
|
Expose alarms as Prometheus metrics (backport #3312)
Backported manually to |
Proposed Changes
This exposes alarms as Prometheus metrics
Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.
CONTRIBUTING.md
documentFurther Comments
Closes #2653