Forum Discussion

doudoudie's avatar
doudoudie
Icon for Nimbostratus rankNimbostratus
Apr 21, 2022

How to get a number of up backends for a specific upstream from nginx plus api

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.