From 125dce0ce283cb78ef6f7bcf7fb8b2425c703c88 Mon Sep 17 00:00:00 2001 From: Holger Woltersdorf Date: Tue, 19 Feb 2019 22:13:07 +0100 Subject: [PATCH] Update changelog & documentation, bumping v0.3.1 --- CHANGELOG.md | 6 ++++++ README.md | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7b1c13..95d3c2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com). +## [0.3.1] - 2019-02-19 + +### Fixed + +* Decimal representation of histogram buckets (which caused the python parser to fail) + ## [0.3.0] - 2018-11-22 ### Fixed diff --git a/README.md b/README.md index 5ee517c..a7cf0d1 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ foreach ( $values as $value ) } # Create the histogram out of the gauge collection and suffix the metric name with "_histogram" -$histogram = Histogram::fromGaugeCollectionWithBounds( $gauges, [30, 46, 78.9, 90], '_histogram' ) +$histogram = Histogram::fromGaugeCollectionWithBounds( $gauges, [0.13, 30, 46, 78.9, 90], '_histogram' ) ->withHelp( 'Explanation of the histogram' ); HttpResponse::fromMetricCollections( $histogram )->respond(); @@ -205,10 +205,11 @@ HttpResponse::fromMetricCollections( $histogram )->respond(); ``` # TYPE your_metric_name_histogram histogram # HELP your_metric_name_histogram Explanation of the histogram -your_metric_name_histogram_bucket{le="30"} 2 -your_metric_name_histogram_bucket{le="46"} 4 +your_metric_name_histogram_bucket{le="0.13"} 1 +your_metric_name_histogram_bucket{le="30.9"} 2 +your_metric_name_histogram_bucket{le="46.0"} 4 your_metric_name_histogram_bucket{le="78.9"} 5 -your_metric_name_histogram_bucket{le="90"} 5 +your_metric_name_histogram_bucket{le="90.0"} 5 your_metric_name_histogram_bucket{le="+Inf"} 5 your_metric_name_histogram_sum 171.420000 your_metric_name_histogram_count 5