-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for gauge aggregation setting (#6)
In prometheus-client-mmap `Prometheus::Client::Registry#gauge` has a fourth parameter `multiprocess_mode` which handles the aggregation. See: * https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap/-/blob/v0.17.0/lib/prometheus/client/registry.rb#L43 * https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap/-/blob/v0.17.0/lib/prometheus/client/gauge.rb#L12 Not all settings already used by yabeda plugins are supported by prometheus-mmap gem (namely `most_recent`), so map metric aggregation setting from Yabeda to Prometheus-mmap names in best effort. --------- Co-authored-by: Andrey Novikov <[email protected]>
- Loading branch information
1 parent
03ef470
commit 9fdbff3
Showing
2 changed files
with
38 additions
and
2 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