Merge pull request #2466 from tifayuki/prometheus_go_metrics

add prometheus metrics
This commit is contained in:
Stephen Day 2018-02-09 15:49:04 -08:00 committed by GitHub
commit 6664ec7039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
113 changed files with 17182 additions and 8 deletions

View file

@ -133,6 +133,11 @@ type Configuration struct {
Debug struct {
// Addr specifies the bind address for the debug server.
Addr string `yaml:"addr,omitempty"`
// Prometheus configures the Prometheus telemetry endpoint.
Prometheus struct {
Enabled bool `yaml:"enabled,omitempty"`
Path string `yaml:"path,omitempty"`
} `yaml:"prometheus,omitempty"`
} `yaml:"debug,omitempty"`
// HTTP2 configuration options