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

@ -85,7 +85,11 @@ var configStruct = Configuration{
} `yaml:"tls,omitempty"`
Headers http.Header `yaml:"headers,omitempty"`
Debug struct {
Addr string `yaml:"addr,omitempty"`
Addr string `yaml:"addr,omitempty"`
Prometheus struct {
Enabled bool `yaml:"enabled,omitempty"`
Path string `yaml:"path,omitempty"`
} `yaml:"prometheus,omitempty"`
} `yaml:"debug,omitempty"`
HTTP2 struct {
Disabled bool `yaml:"disabled,omitempty"`