Merge pull request #14898 from prometheus/fix-targets-page-coloring
Fix border color for target pools with one target that is failing
This commit is contained in:
commit
b93ed7bd17
|
@ -53,7 +53,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
|
||||||
|
|
Loading…
Reference in New Issue