Add idle_since to emitted metrics (#1844)

This commit is contained in:
James Carr 2016-10-06 08:26:53 -05:00 committed by Cameron Sparr
parent 886bdd2ef2
commit 8dc42ad9f2
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,8 @@ type Queue struct {
Node string
Vhost string
Durable bool
AutoDelete bool `json:"auto_delete"`
AutoDelete bool `json:"auto_delete"`
IdleSince string `json:"idle_since"`
}
// Node ...
@ -328,6 +329,7 @@ func gatherQueues(r *RabbitMQ, acc telegraf.Accumulator, errChan chan error) {
// common information
"consumers": queue.Consumers,
"consumer_utilisation": queue.ConsumerUtilisation,
"idle_since": queue.IdleSince,
"memory": queue.Memory,
// messages information
"message_bytes": queue.MessageBytes,