-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use /debug/metrics as endpoint, seems more proper/elegant
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,10 +90,10 @@ import "github.com/rcrowley/go-metrics/stathat" | |
go stathat.Stathat(metrics.DefaultRegistry, 10e9, "[email protected]") | ||
``` | ||
|
||
Maintain all metrics along with expvars at `/debug/vars2`: | ||
Maintain all metrics along with expvars at `/debug/metrics`: | ||
|
||
This uses the same mechanism as [the official expvar](http://golang.org/pkg/expvar/) | ||
but exposed under `/debug/vars2`, which shows a json representation of all your usual expvars | ||
but exposed under `/debug/metrics`, which shows a json representation of all your usual expvars | ||
as well as all your go-metrics. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters