21-Apr-2022 09:03
We managed to get a count number of live backends for a specific upstream for prometheus blackbox checks.
Wonder if there's a api that we can use to archive this. for example. there's a upstream has 3 backends and we want to get a result like up:3 or something similar from api. Please share it if there's one.
05-May-2022
07:11
- last edited on
05-Jun-2023
16:24
by
JimmyPackets
Hello,
Have you looked at this http://nginx.org/en/docs/http/ngx_http_api_module.html#example ? You can use /http/upstreams/ /stream/upstreams/
/http/server_zones/
but this is a commecial module.
Also some extra info about server zones and status zones as they are need for you get the info through the API:
http://nginx.org/en/docs/http/ngx_http_status_module.html#status_zone