mirror of
https://github.com/coredns/coredns.git
synced 2025-11-25 13:14:02 -05:00
return failure with CH class hits file or etcd, monitoring portis 9135
This commit is contained in:
@@ -25,6 +25,6 @@ prometheus
|
||||
For each zone that you want to see metrics for.
|
||||
|
||||
It optionally takes an address where the metrics are exported, the default
|
||||
is `localhost:9153`. The metrics path is fixed to `/metrics`.
|
||||
is `localhost:9154`. The metrics path is fixed to `/metrics`.
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -39,6 +39,7 @@ func (m *Metrics) Start() error {
|
||||
|
||||
http.Handle(path, prometheus.Handler())
|
||||
go func() {
|
||||
// TODO(miek): Logging here?
|
||||
fmt.Errorf("%s", http.ListenAndServe(m.Addr, nil))
|
||||
}()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user