Skip to content

Commit

Permalink
Update changelog & documentation, bumping v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hollodotme committed Feb 19, 2019
1 parent 768937a commit 125dce0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down

0 comments on commit 125dce0

Please sign in to comment.