Forum Discussion
BigIQ example to get pool member counts vi API
Found my own anwser here
https://clouddocs.f5.com/products/big-iq/mgmt-api/v7.1.0/ApiReferences/bigiq_public_api_ref/r_analytics_metric_query.html
Virtual Server Connection Count, Pool Connection Count, Pool Member Connection Count
Virtual Server Count
{
"kind": "ap:query:stats:byTime",
"source": "bigip",
"module": "http",
"timeRange": {
"from": "-1h",
"to": "now"
},
"timeGranularity": {
"duration": 30,
"unit": "SECONDS"
},
"aggregations": {
"transactions$avg-count-per-sec": {
"metricSet": "transactions",
"metric": "avg-count-per-sec"
},
"transaction-request-size$avg-value-per-sec": {
"metricSet": "transaction-request-size",
"metric": "avg-value-per-sec"
},
"transaction-response-size$avg-value-per-sec": {
"metricSet": "transaction-response-size",
"metric": "avg-value-per-sec"
}
},
"dimensionFilter": {
"type": "and",
"args": [{
"type": "eq",
"dimension": "hostname",
"value": "uk-lbr01.test.com"
},
{
"type": "eq",
"dimension": "virtual",
"value": "/Common/test.pool.com_443"
}
]
}
}
Pool Connection Count
{
"kind": "ap:query:stats:byTime",
"source": "bigip",
"module": "bigip-pool-members",
"timeRange": {
"from": "-1h",
"to": "now"
},
"timeGranularity": {
"duration": 30,
"unit": "SECONDS"
},
"aggregations": {
"server-concurrent-connections$avg-value-per-sec": {
"metricSet": "server-concurrent-connections",
"metric": "avg-value-per-sec"
}
},
"dimensionFilter": {
"type": "and",
"args": [{
"type": "eq",
"dimension": "hostname",
"value": "uk-lbr01.testcom"
},
{
"type": "eq",
"dimension": "pool-name",
"value": "/Common/test.pool.com_80"
}
]
}
}
Pool Member Count
{
"kind": "ap:query:stats:byTime",
"source": "bigip",
"module": "bigip-pool-members",
"timeRange": {
"from": "-1h",
"to": "now"
},
"timeGranularity": {
"duration": 30,
"unit": "SECONDS"
},
"aggregations": {
"server-concurrent-connections$avg-value-per-sec": {
"metricSet": "server-concurrent-connections",
"metric": "avg-value-per-sec"
}
},
"dimensionFilter": {
"type": "and",
"args": [{
"type": "eq",
"dimension": "hostname",
"value": "uk-lbr01.test.com"
},
{
"type": "eq",
"dimension": "pool-name",
"value": "/Common/test.pool.com_80"
},
{
"type": "eq",
"dimension": "pool-member",
"value": "10.1.2.3:80"
}
]
}
}
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com