Fix health color for target pools with single target that is down

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2025-02-22 21:31:24 +01:00
parent 7bbbb5cb97
commit b636046672

View file

@ -54,7 +54,7 @@ type ScrapePools = {
}; };
const poolPanelHealthClass = (pool: ScrapePool) => const poolPanelHealthClass = (pool: ScrapePool) =>
pool.count > 1 && pool.downCount === pool.count pool.count > 0 && pool.downCount === pool.count
? panelClasses.panelHealthErr ? panelClasses.panelHealthErr
: pool.downCount >= 1 : pool.downCount >= 1
? panelClasses.panelHealthWarn ? panelClasses.panelHealthWarn