Skip to content

Commit

Permalink
Add idle_since to emitted metrics (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescarr authored and jackzampolin committed Oct 7, 2016
1 parent 68258a5 commit a1345b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/inputs/rabbitmq/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a1345b2

Please sign in to comment.