Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add messages_delivered_get to rabbitmq_overview #3596

Merged
merged 2 commits into from
Dec 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change to RabbitMQ sample query
  • Loading branch information
kerams authored Dec 18, 2017
commit b9059055ac21d92129dddc5c34697db85ea73699
2 changes: 1 addition & 1 deletion plugins/inputs/rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ For additional details reference the [RabbitMQ Management HTTP Stats](https://cd
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_DIFFERENCE(LAST("messages_published")) AS messages_published_rate
SELECT NON_NEGATIVE_DERIVATIVE(LAST("messages_published"), 1m) AS messages_published_rate
FROM rabbitmq_overview WHERE time > now() - 10m GROUP BY time(1m)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might recommend non_negative_derivative(..., 1m) instead of difference(). That way the query always gives you the 1m rate, regardless of the group by interval. Both methods are perfectly valid, just the derivative tends to be more useful in graphing as your group by interval changes based on the time range.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright.

```

Expand Down