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:
Julius Volz 2024-09-13 09:21:54 +02:00 committed by GitHub
commit b93ed7bd17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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