Skip to content

Commit

Permalink
Merge pull request #65 from SuperQ/superq/fix_buckets
Browse files Browse the repository at this point in the history
Fix histogram bucket config
  • Loading branch information
SuperQ authored Mar 15, 2022
2 parents 7c0cfd8 + ba9bb98 commit 7bed528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* [ENHANCEMENT]
* [BUGFIX]

* [BUGFIX] Fix histogram buckets #65

# 0.5.0 / 2021-12-19

* [FEATURE] Support loading targets from a config file #54
Expand Down
2 changes: 1 addition & 1 deletion collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func newPingResponseHistogram(buckets []float64) *prometheus.HistogramVec {
Namespace: namespace,
Name: "response_duration_seconds",
Help: "A histogram of latencies for ping responses.",
Buckets: prometheus.ExponentialBuckets(0.00025, 2, 16),
Buckets: buckets,
},
labelNames,
)
Expand Down

0 comments on commit 7bed528

Please sign in to comment.