Add RabbitMQ cluster and running nodes count and running node status (#3703)

This commit is contained in:
Ivan Lopez
2018-01-27 00:00:58 +01:00
committed by Daniel Nelson
parent ff63421d0e
commit 782b1336e3
3 changed files with 53 additions and 5 deletions

View File

@@ -51,7 +51,25 @@ const sampleOverviewResponse = `
"messages_unacknowledged_details": {
"rate": 0.0
}
}
},
"listeners": [
{
"name": "rabbit@node-a",
"protocol": "amqp"
},
{
"name": "rabbit@node-b",
"protocol": "amqp"
},
{
"name": "rabbit@node-a",
"protocol": "clustering"
},
{
"name": "rabbit@node-b",
"protocol": "clustering"
}
]
}
`
@@ -514,6 +532,8 @@ func TestRabbitMQGeneratesMetrics(t *testing.T) {
"consumers",
"exchanges",
"queues",
"clustering_listeners",
"amqp_listeners",
}
for _, metric := range intMetrics {
@@ -532,6 +552,7 @@ func TestRabbitMQGeneratesMetrics(t *testing.T) {
"run_queue",
"sockets_total",
"sockets_used",
"running",
}
for _, metric := range nodeIntMetrics {