Add messages_delivered_get to rabbitmq_overview (#3596)
This commit is contained in:
parent
3029d58cad
commit
496452144c
|
@ -52,6 +52,7 @@ For additional details reference the [RabbitMQ Management HTTP Stats](https://cd
|
||||||
- messages (int, messages)
|
- messages (int, messages)
|
||||||
- messages_acked (int, messages)
|
- messages_acked (int, messages)
|
||||||
- messages_delivered (int, messages)
|
- messages_delivered (int, messages)
|
||||||
|
- messages_delivered_get (int, messages)
|
||||||
- messages_published (int, messages)
|
- messages_published (int, messages)
|
||||||
- messages_ready (int, messages)
|
- messages_ready (int, messages)
|
||||||
- messages_unacked (int, messages)
|
- messages_unacked (int, messages)
|
||||||
|
@ -115,6 +116,12 @@ For additional details reference the [RabbitMQ Management HTTP Stats](https://cd
|
||||||
|
|
||||||
### Sample Queries:
|
### Sample Queries:
|
||||||
|
|
||||||
|
Message rates for the entire node can be calculated from total message counts. For instance, to get the rate of messages published per minute, use this query:
|
||||||
|
|
||||||
|
```
|
||||||
|
SELECT NON_NEGATIVE_DERIVATIVE(LAST("messages_published"), 1m) AS messages_published_rate
|
||||||
|
FROM rabbitmq_overview WHERE time > now() - 10m GROUP BY time(1m)
|
||||||
|
```
|
||||||
|
|
||||||
### Example Output:
|
### Example Output:
|
||||||
|
|
||||||
|
|
|
@ -278,6 +278,7 @@ func gatherOverview(r *RabbitMQ, acc telegraf.Accumulator) {
|
||||||
"queues": overview.ObjectTotals.Queues,
|
"queues": overview.ObjectTotals.Queues,
|
||||||
"messages_acked": overview.MessageStats.Ack,
|
"messages_acked": overview.MessageStats.Ack,
|
||||||
"messages_delivered": overview.MessageStats.Deliver,
|
"messages_delivered": overview.MessageStats.Deliver,
|
||||||
|
"messages_delivered_get": overview.MessageStats.DeliverGet,
|
||||||
"messages_published": overview.MessageStats.Publish,
|
"messages_published": overview.MessageStats.Publish,
|
||||||
}
|
}
|
||||||
acc.AddFields("rabbitmq_overview", fields, tags)
|
acc.AddFields("rabbitmq_overview", fields, tags)
|
||||||
|
|
Loading…
Reference in New Issue