mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
address feedback, fix gauge metric name
This commit is contained in:
@@ -263,6 +263,7 @@ func (a *Agent) Monitor(stopCh <-chan struct{}, q *QueryOptions) (<-chan *Stream
|
||||
for {
|
||||
select {
|
||||
case <-stopCh:
|
||||
close(frames)
|
||||
return
|
||||
default:
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ func NewAgentEndpoint(c *Client) *Agent {
|
||||
}
|
||||
|
||||
func (m *Agent) monitor(conn io.ReadWriteCloser) {
|
||||
defer metrics.MeasureSince([]string{"client", "monitor", "monitor"}, time.Now())
|
||||
defer metrics.MeasureSince([]string{"client", "agent", "monitor"}, time.Now())
|
||||
defer conn.Close()
|
||||
|
||||
// Decode arguments
|
||||
|
||||
Reference in New Issue
Block a user