From 23f43cb1153c332b468c8e83270186fc99dfd09f Mon Sep 17 00:00:00 2001 From: Christoffer Artmann Date: Fri, 9 Dec 2016 14:07:15 +0100 Subject: [PATCH] Update the Histogram example to reflect API changes `prometheus.NewSummary()` takes a ` *"github.com/prometheus/client_golang/prometheus".SummaryVec` as argument. `prometheus.NewSummaryFrom()` has the behaivour described in the example. - Update the Histogram example so it uses `prometheus.NewSummaryFrom()` instead of `prometheus.NewSummary()`. --- metrics/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/README.md b/metrics/README.md index 8ffa8feb7..1cbb9ab11 100644 --- a/metrics/README.md +++ b/metrics/README.md @@ -49,7 +49,7 @@ import ( ) func main() { - var dur metrics.Histogram = prometheus.NewSummary(stdprometheus.SummaryOpts{ + var dur metrics.Histogram = prometheus.NewSummaryFrom(stdprometheus.SummaryOpts{ Namespace: "myservice", Subsystem: "api", Name: "request_duration_seconds",