Merge pull request #16068 from prometheus/fix/target-health-highlighting

Fix health color for target pools with single target that is down
This commit is contained in:
Julius Volz 2025-02-22 22:47:41 +01:00 committed by GitHub
commit e837ac9fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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