Feature Request - Filter Out Specific `Label=Value` From the UI By Default
As a feature request, I would to be able to configure removing certain label=value pairs by default in the karma UI. Similar to hwo we can filter our certain labels:
labels:
keep: []
strip:
- task_id
One could go a step deeper and specify what label=value pair we want stripped from the UI
I believe that Karma already has support for that. As per CONFIGURATION.md:
some labels aren't useful to users and so can be removed from the UI, this is controlled by
keep,keep_re,stripandstrip_reoptions. [...] Syntax:
labels: color: static: list of strings unique: list of strings custom: foo: - value: string value_re: regex color: string order: list of strings keep: list of strings keep_re: list of regex strip: list of strings strip_re: list of regex valueOnly: list of strings valueOnly_re: list of regex
Can I do something like this?
labels:
strip:
-
alertname=Watchdog
-
severity=info
strip_re: list of regex
- alertname=PrometheusOperator*
I don’t want to strip out ALL key=value pairs of a labels, just specific pairs.
Thank you, Jack Lozano
From: Eduardo Baitello @.>
Date: Thursday, August 11, 2022 at 07:18
To: prymitive/karma @.>
Cc: Lozano, Jack @.>, Author @.>
Subject: [EXTERNAL] Re: [prymitive/karma] Feature Request - Filter Out Specific Label=Value From the UI By Default (Issue #4395)
I believe that Karma already has support for that. As per CONFIGURATION. md: some labels aren't useful to users and so can be removed from the UI, this is controlled by keep, keep_re, strip and strip_re options. [. . . ] Syntax:
I believe that Karma already has support for that. As per CONFIGURATION.md:https://urldefense.com/v3/__https:/github.com/prymitive/karma/blob/6135c40501ed552bd98a1f55f3e3f0eb84cf51c7/docs/CONFIGURATION.md*labels__;Iw!!NiYMbFKv!IKxmIskcVSPaJsfyyclfB025XSKGlzKBbatu08px6Vuow_34ldzVDjEwDi_Fmx4d2kZFXiMyjWQtAlHEqFmHlOe3nwk$
some labels aren't useful to users and so can be removed from the UI, this is controlled by keep, keep_re, strip and strip_re options. [...] Syntax:
labels:
color:
static: list of strings
unique: list of strings
custom:
foo:
- value: string
value_re: regex
color: string
order: list of strings
keep: list of strings
keep_re: list of regex
strip: list of strings
strip_re: list of regex
valueOnly: list of strings
valueOnly_re: list of regex
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/prymitive/karma/issues/4395*issuecomment-1211978683__;Iw!!NiYMbFKv!IKxmIskcVSPaJsfyyclfB025XSKGlzKBbatu08px6Vuow_34ldzVDjEwDi_Fmx4d2kZFXiMyjWQtAlHEqFmHUBOO--M$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYFDRKH63U5244PAK7PNBTVYT4TVANCNFSM5Y372LTA__;!!NiYMbFKv!IKxmIskcVSPaJsfyyclfB025XSKGlzKBbatu08px6Vuow_34ldzVDjEwDi_Fmx4d2kZFXiMyjWQtAlHEqFmHvAfgAFY$. You are receiving this because you authored the thread.Message ID: @.***>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.