This commit is contained in:
Manfred Touron
2017-05-18 18:54:23 +02:00
parent dc386661ca
commit 5448f25fd6
645 changed files with 55908 additions and 33297 deletions

View File

@@ -49,7 +49,7 @@ import (
)
func main() {
var dur metrics.Histogram = prometheus.NewSummaryFrom(stdprometheus.SummaryOpts{
var dur metrics.Histogram = prometheus.NewSummary(stdprometheus.SummaryOpts{
Namespace: "myservice",
Subsystem: "api",
Name: "request_duration_seconds",
@@ -93,5 +93,3 @@ func exportGoroutines(g metrics.Gauge) {
}
}
```
For more information, see [the package documentation](https://godoc.org/github.com/go-kit/kit/metrics).