Skip to content

Commit 5c445f0

Browse files
committed
RHIDP-12601: Scorecard supports custom key values and colors
1 parent b31803b commit 5c445f0

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

assemblies/observability_evaluate-project-health-using-scorecards/assembly-scorecard-metric-thresholds.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ include::../modules/observability_evaluate-project-health-using-scorecards/ref-o
2020

2121
include::../modules/observability_evaluate-project-health-using-scorecards/con-verify-logical-flow-in-scorecard-threshold-rules.adoc[leveloffset=+1]
2222

23+
include::../modules/observability_evaluate-project-health-using-scorecards/proc-configure-custom-scorecard-severities.adoc[leveloffset=+1]
24+
2325
ifdef::parent-context[:context: {parent-context}]
2426
ifndef::parent-context[:!context:]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="configure-custom-scorecard-severities_{context}"]
4+
= Configure custom severity levels and colors for Scorecard
5+
6+
[role="_abstract"]
7+
Customizing severity thresholds and color mappings in your Scorecard configuration allows you to visualize platform metrics using your organization's custom operational terminology.
8+
9+
.Prerequisites
10+
* You have administrative access to the {product} configuration files.
11+
* An existing default Scorecard plugin configuration is deployed.
12+
13+
.Procedure
14+
1. Open your {product} YAML configuration file.
15+
16+
2. Navigate to the `scorecard` backend plugin configuration section.
17+
18+
3. Add your custom severity keys and user-defined hex color values under the threshold color mapping block.
19+
+
20+
--
21+
[source,yaml]
22+
----
23+
scorecard:
24+
thresholds:
25+
colors:
26+
success: '#47A942'
27+
warning: '#F0AB00'
28+
error: '#C9190B'
29+
critical: '#A30000'
30+
info: '#0066CC'
31+
----
32+
--
33+
4. Save the changes to the configuration file.
34+
35+
5. Restart your {product} instance to apply the new thresholds.
36+
37+
.Verification
38+
39+
* Open the {product} UI, navigate to the Scorecard component, and verify that the custom severity levels display with their specified colors.

0 commit comments

Comments
 (0)