Skip to content

Commit

Permalink
0.5.0: Allow to specify aggregation policy for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Jan 29, 2020
1 parent 6f664d6 commit 098e71f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.5.0 - 2020-01-29

### Added

- Ability to specify aggregation policy for metrics collected from multiple process and exposed via single endpoint. [@Envek]

For now it is only used by yabeda-prometheus when official Prometheus client is configured to use file storage for metrics.

## 0.4.0 - 2020-01-28

### Changed
Expand Down
1 change: 1 addition & 0 deletions lib/yabeda/metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Metric
option :unit, optional: true, comment: "In which units it is measured. E.g. `seconds`"
option :per, optional: true, comment: "Per which unit is measured `unit`. E.g. `call` as in seconds per call"
option :group, optional: true, comment: "Category name for grouping metrics"
option :aggregation, optional: true, comment: "How adapters should aggregate values from different processes"

# Returns the value for the given label set
def get(labels = {})
Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Yabeda
VERSION = "0.4.0"
VERSION = "0.5.0"
end

0 comments on commit 098e71f

Please sign in to comment.