Add idle_since to emitted metrics (#1844)
This commit is contained in:
parent
886bdd2ef2
commit
8dc42ad9f2
|
@ -108,6 +108,7 @@ type Queue struct {
|
||||||
Vhost string
|
Vhost string
|
||||||
Durable bool
|
Durable bool
|
||||||
AutoDelete bool `json:"auto_delete"`
|
AutoDelete bool `json:"auto_delete"`
|
||||||
|
IdleSince string `json:"idle_since"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node ...
|
// Node ...
|
||||||
|
@ -328,6 +329,7 @@ func gatherQueues(r *RabbitMQ, acc telegraf.Accumulator, errChan chan error) {
|
||||||
// common information
|
// common information
|
||||||
"consumers": queue.Consumers,
|
"consumers": queue.Consumers,
|
||||||
"consumer_utilisation": queue.ConsumerUtilisation,
|
"consumer_utilisation": queue.ConsumerUtilisation,
|
||||||
|
"idle_since": queue.IdleSince,
|
||||||
"memory": queue.Memory,
|
"memory": queue.Memory,
|
||||||
// messages information
|
// messages information
|
||||||
"message_bytes": queue.MessageBytes,
|
"message_bytes": queue.MessageBytes,
|
||||||
|
|
Loading…
Reference in New Issue