From 57536d982c4a317eddc7cc271b7bc59a388618b7 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 18 Feb 2026 16:00:50 +0100 Subject: [PATCH 1/3] Add log output and fix bugs in AppTagger --- internal/tagger/detectApp.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/internal/tagger/detectApp.go b/internal/tagger/detectApp.go index 5519cbf0..bd5faed8 100644 --- a/internal/tagger/detectApp.go +++ b/internal/tagger/detectApp.go @@ -52,7 +52,10 @@ func (t *AppTagger) scanApp(f *os.File, fns string) { ai := appInfo{tag: tag, patterns: make([]*regexp.Regexp, 0)} for scanner.Scan() { - line := scanner.Text() + line := strings.TrimSpace(scanner.Text()) + if line == "" { + continue + } re, err := regexp.Compile(line) if err != nil { cclog.Errorf("invalid regex pattern '%s' in %s: %v", line, fns, err) @@ -68,6 +71,8 @@ func (t *AppTagger) scanApp(f *os.File, fns string) { break } } + + cclog.Infof("AppTagger loaded %d patterns for %s", len(ai.patterns), tag) t.apps = append(t.apps, ai) } @@ -86,6 +91,9 @@ func (t *AppTagger) EventCallback() { } for _, fn := range files { + if fn.IsDir() { + continue + } fns := fn.Name() cclog.Debugf("Process: %s", fns) f, err := os.Open(filepath.Join(t.cfgPath, fns)) @@ -121,6 +129,9 @@ func (t *AppTagger) Register() error { } for _, fn := range files { + if fn.IsDir() { + continue + } fns := fn.Name() cclog.Debugf("Process: %s", fns) f, err := os.Open(filepath.Join(t.cfgPath, fns)) @@ -164,8 +175,8 @@ func (t *AppTagger) Match(job *schema.Job) { if re.MatchString(jobscriptLower) { if !r.HasTag(id, t.tagType, a.tag) { r.AddTagOrCreateDirect(id, t.tagType, a.tag) - break out } + break out } } } From 89e06c3530ff3975f6f1890faf79f12d2fa7b2b3 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 18 Feb 2026 16:14:54 +0100 Subject: [PATCH 2/3] fix layout of metrichealth table --- .../src/status/dashdetails/HealthDash.svelte | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/frontend/src/status/dashdetails/HealthDash.svelte b/web/frontend/src/status/dashdetails/HealthDash.svelte index 8b4fd98d..e9be9313 100644 --- a/web/frontend/src/status/dashdetails/HealthDash.svelte +++ b/web/frontend/src/status/dashdetails/HealthDash.svelte @@ -276,11 +276,11 @@ - +
- - - + - -
sortBy('hostname')}> + sortBy('hostname')}> Host sortBy('schedulerState')}> + sortBy('schedulerState')}> Scheduler State sortBy('healthState')}> + sortBy('healthState')}> Health State {host.hostname}{host.hostname} {host.schedulerState} {host.healthState} + {#each Object.keys(host.healthData) as hkey}

{hkey}: {host.healthData[hkey]}

{/each}
+ {#each Object.keys(host.metaData) as mkey}

{mkey}: {host.metaData[mkey]} From facfc9d4c9fd10ec713c6c5063383dba8bdde8eb Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 18 Feb 2026 16:22:02 +0100 Subject: [PATCH 3/3] increase column size --- web/frontend/src/status/dashdetails/HealthDash.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/frontend/src/status/dashdetails/HealthDash.svelte b/web/frontend/src/status/dashdetails/HealthDash.svelte index e9be9313..9bf0d5af 100644 --- a/web/frontend/src/status/dashdetails/HealthDash.svelte +++ b/web/frontend/src/status/dashdetails/HealthDash.svelte @@ -289,7 +289,7 @@ : ''}" /> -

sortBy('schedulerState')}> + sortBy('schedulerState')}> Scheduler State