address feedback, fix gauge metric name

This commit is contained in:
Drew Bailey
2019-11-04 14:17:15 -05:00
parent 4f618eb1e3
commit bb2a7f4338
2 changed files with 2 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ func (a *Agent) Monitor(stopCh <-chan struct{}, q *QueryOptions) (<-chan *Stream
for {
select {
case <-stopCh:
close(frames)
return
default:
}

View File

@@ -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