Skip to content

Commit 125dce0

Browse files
committed
Update changelog & documentation, bumping v0.3.1
1 parent 768937a commit 125dce0

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com).
55

6+
## [0.3.1] - 2019-02-19
7+
8+
### Fixed
9+
10+
* Decimal representation of histogram buckets (which caused the python parser to fail)
11+
612
## [0.3.0] - 2018-11-22
713

814
### Fixed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ foreach ( $values as $value )
194194
}
195195

196196
# Create the histogram out of the gauge collection and suffix the metric name with "_histogram"
197-
$histogram = Histogram::fromGaugeCollectionWithBounds( $gauges, [30, 46, 78.9, 90], '_histogram' )
197+
$histogram = Histogram::fromGaugeCollectionWithBounds( $gauges, [0.13, 30, 46, 78.9, 90], '_histogram' )
198198
->withHelp( 'Explanation of the histogram' );
199199

200200
HttpResponse::fromMetricCollections( $histogram )->respond();
@@ -205,10 +205,11 @@ HttpResponse::fromMetricCollections( $histogram )->respond();
205205
```
206206
# TYPE your_metric_name_histogram histogram
207207
# HELP your_metric_name_histogram Explanation of the histogram
208-
your_metric_name_histogram_bucket{le="30"} 2
209-
your_metric_name_histogram_bucket{le="46"} 4
208+
your_metric_name_histogram_bucket{le="0.13"} 1
209+
your_metric_name_histogram_bucket{le="30.9"} 2
210+
your_metric_name_histogram_bucket{le="46.0"} 4
210211
your_metric_name_histogram_bucket{le="78.9"} 5
211-
your_metric_name_histogram_bucket{le="90"} 5
212+
your_metric_name_histogram_bucket{le="90.0"} 5
212213
your_metric_name_histogram_bucket{le="+Inf"} 5
213214
your_metric_name_histogram_sum 171.420000
214215
your_metric_name_histogram_count 5

0 commit comments

Comments
 (0)