Skip to content

Commit 844cec0

Browse files
committed
Incorporated Dominika's comments
1 parent 8ce8b09 commit 844cec0

7 files changed

+56
-44
lines changed

artifacts/attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@
170170
:using-dynamic-plugins-book-title: Using dynamic plugins
171171

172172
:scorecard-plugin-book-link: {product-docs-link}/html-single/understanding_and_visualizing_red_hat_developer_hub_project_health_using_scorecards/index
173-
:scorecard-plugin-book-link: Understanding and visualizing {product} project health using Scorecards
173+
:scorecard-plugin-book-title: Understanding and visualizing {product} project health using Scorecards

assemblies/assembly-configuring-scorecards-in-rhdh.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
:_mod-docs-content-type: ASSEMBLY
22

33
[id="assembly-configuring-scorecards-in-rhdh"]
4-
= Configuring Scorecards to view metrics in your {product} instance
4+
= Installing and configuring Scorecards to view metrics in your {product} instance
55
:context: assembly-configuring-scorecards-in-rhdh
66

7-
You can configure one of the following Scorecards in your {product-very-short} instance using metrics and scoring capabilities from various data sources for software components in the {product-very-short} catalog:
7+
You can install and configure the following Scorecards to display metrics and visual health status for software components in the {product-very-short} catalog:
88

99
* GitHub Scorecards
1010
* Jira Scorecards

modules/observe/scorecards/con-set-global-standards-for-metric-thresholds.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[id="con-set-global-standards-to-configure-thresholds"]
44
= Set global standards for metric thresholds
55

6-
To override the default thresholds set by a metric provider, you must update your `{product-very-short} app-config.yaml` file under the configuration path of the specific metric.
6+
To override the default thresholds set by a metric provider, you must update your {product-very-short} `{my-app-config-file}` file under the configuration path of the specific metric.
77

88
The custom configuration completely replaces the provider's defaults. If you omit a threshold category (such as `success`), that category is not assigned.
99

modules/observe/scorecards/proc-configuring-github-scorecards-in-rhdh-instance.adoc

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can view GitHub metrics for software components registered in the {product-v
1313
* You must have {configuring-book-link}[added a custom {product-very-short} application configuration] and have enough permissions to change it.
1414

1515
.Procedure
16-
To configure GitHub Scorecards in your RHDH instance, complete the following steps:
16+
To install and configure GitHub Scorecards in your {product-very-short} instance, complete the following steps:
1717

1818
. To allow {product-very-short} to access the GitHub API, you must create and configure a GitHub App and add the necessary integration to your configuration file by completing the following steps:
1919
.. Create a https://docs.github.com/en/apps/overview[GitHub App] with the required permissions (Read-only for Contents to allow reading repositories).
@@ -31,7 +31,7 @@ To configure GitHub Scorecards in your RHDH instance, complete the following ste
3131
*** `GITHUB_INTEGRATION_HOST_DOMAIN` (e.g., `github.com`)
3232
*** `GITHUB_INTEGRATION_PRIVATE_KEY_FILE`
3333

34-
. Configure the GitHub integration in your `{product-very-short} {my-app-config-file}`, by adding the `integrations.github` section:
34+
. Configure the GitHub integration in your {product-very-short} `{my-app-config-file}`, by adding the `integrations.github` section:
3535
+
3636
[source,yaml]
3737
----
@@ -46,17 +46,7 @@ integrations:
4646
${GITHUB_INTEGRATION_PRIVATE_KEY_FILE}
4747
----
4848

49-
. Add the catalog ingest entity by adding the `catalog` section in your `{product-very-short} {my-app-config-file}`
50-
+
51-
[source,yaml]
52-
----
53-
catalog:
54-
locations:
55-
- type: url
56-
target: https://github.com/owner/repo/catalog-info.yaml
57-
----
58-
59-
. Configure the GitHub Scorecard plugin in your `{product-very-short} dynamic-plugins-config.yaml` by adding the following code to your `{product-very-short} dynamic-plugins-config.yaml`:
49+
. Install the GitHub Scorecard plugin in your {product-very-short} `dynamic-plugins-config.yaml` by adding the following code to your {product-very-short} `dynamic-plugins-config.yaml`:
6050
+
6151
[source,yaml]
6252
----
@@ -95,9 +85,17 @@ where:
9585
You must add the team entity to the Catalog to ensure the provided permissions are applicable.
9686
====
9787

98-
. (Optional) Configure metric threshold values.
88+
. Statically ingest the catalog entity by adding the `catalog.locations` section in your {product-very-short} `{my-app-config-file}` that links to the `catalog-info.yaml` file:
89+
+
90+
[source,yaml]
91+
----
92+
catalog:
93+
locations:
94+
- type: url
95+
target: https://github.com/owner/repo/catalog-info.yaml
96+
----
9997

100-
.. To customize the thresholds for the **GitHub Open Pull Requests** (`github.open_prs`) metric, add the following section to your `{my-app-config-file}` file:
98+
. (Optional) To customize the thresholds for the **GitHub Open Pull Requests** (`github.open_prs`) metric, add the following section to your {product-very-short} `{my-app-config-file}` file:
10199
+
102100
[source,yaml]
103101
----

modules/observe/scorecards/proc-configuring-jira-scorecards-in-rhdh-instance.adoc

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The following Jira versions are supported:
1717
* You must have {configuring-book-link}[added a custom {product-very-short} application configuration] and have enough permissions to change it.
1818

1919
.Procedure
20+
To install and configure Jira Scorecards in your {product-very-short} instance, complete the following steps:
2021

2122
. Create a Jira configuration token using one of the following methods, depending on your Jira product:
2223
** Jira Cloud: https://id.atlassian.com/manage-profile/security/api-tokens[Create a personal token]. You must then create a `Base64-encoded` string using the following plain text format: `your-atlassian-email:your-jira-api-token`.
@@ -27,43 +28,49 @@ echo -n 'your-atlassian-email:your-jira-api-token' | base64
2728
----
2829
** Jira datacenter: Create and use a Personal Access Token (PAT) in your Jira datacenter account. For more information, see the https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html[Atlassian] documentation.
2930

30-
. Add your Jira token (${JIRA_TOKEN}) to {configuring-book-link}#provisioning-your-custom-configuration[your {product-very-short} secrets] using the following key/value pairs.
31+
. Add your Jira configuration (${JIRA_TOKEN}) to {configuring-book-link}#provisioning-your-custom-configuration[your {product-very-short} secrets] using the following key/value pairs:
32+
*** `JIRA_TOKEN`
33+
*** `JIRA_BASE_URL`
3134

32-
. Configure the Jira Scorecard plugin in your `{product-very-short} dynamic-plugins-config.yaml` using either a direct setup or a proxy setup.
33-
.. Use a direct setup: Add the following code to your `{product-very-short} dynamic-plugins-config.yaml`:
35+
. Install the Jira Scorecard plugin in your {product-very-short} `dynamic-plugins-config.yaml` using either a direct setup or a proxy setup.
36+
.. Use a direct setup: Add the following code to your {product-very-short} `dynamic-plugins-config.yaml`:
3437
+
3538
[source,yaml]
3639
----
3740
plugins:
3841
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-scorecard-backend-module-jira:pr_1499__0.1.0!red-hat-developer-hub-backstage-plugin-scorecard-backend-module-jira
3942
disabled: false
4043
----
41-
... In your `{product-very-short} {my-app-config-file}` file, add the following direct setup settings:
44+
... In your {product-very-short} `{my-app-config-file}` file, add the following direct setup settings:
4245
+
4346
[source,yaml]
4447
----
45-
pluginConfig:
46-
jira:
47-
baseUrl: ${JIRA_BASE_URL}
48-
token: ${JIRA_TOKEN}
49-
product: _<jira_product>_
48+
jira:
49+
baseUrl: ${JIRA_BASE_URL}
50+
token: ${JIRA_TOKEN}
51+
product: _<jira_product>_
5052
----
5153
where:
5254

53-
`baseUrl`:: Enter the Jira URL.
54-
`token`:: Enter the Jira token (Base64 string for Cloud, PAT for Data Center).
55-
`product`:: Enter the supported product: `cloud` or `datacenter`. (`cloud` is the preferred option)
55+
`baseUrl`:: The base URL of your Jira instance, configured under ${JIRA_BASE_URL} in your {product-very-short} secrets.
56+
`token`:: The Jira token (Base64 string for Cloud, PAT for Data Center), configured under ${JIRA_TOKEN} in your {product-very-short} secrets.
57+
`product`:: Enter the supported product: `cloud` or `datacenter`.
5658

57-
.. Use a proxy setup: In your `{product-very-short} dynamic-plugins-config.yaml`, add the following code:
59+
.. Use a proxy setup: In your {product-very-short} `dynamic-plugins-config.yaml`, add the following code:
5860
+
5961
[source,yaml]
6062
----
6163
plugins:
6264
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-scorecard-backend-module-jira:pr_1499__0.1.0!red-hat-developer-hub-backstage-plugin-scorecard-backend-module-jira
6365
disabled: false
6466
----
67+
+
68+
[NOTE]
69+
====
70+
You must use the proxy setup to ensure configuration compatibility if the Roadie Jira Frontend Plugin is also in use.
71+
====
6572

66-
... In your `{product-very-short} {my-app-config-file}` file, add the following proxy settings:
73+
... In your {product-very-short} `{my-app-config-file}` file, add the following proxy settings:
6774
+
6875
[source,yaml]
6976
----
@@ -82,8 +89,9 @@ jira:
8289
----
8390
where:
8491

85-
`Authorization`:: Set any of the following header value:
86-
* For *Cloud*: `Basic YourCreatedAboveToken`
92+
`target`:: The base URL of your Jira instance, configured under ${JIRA_BASE_URL} in your {product-very-short} secrets.
93+
`Authorization`:: The Jira token, configured under ${JIRA_TOKEN} in your {product-very-short} secrets. Set the token value as one of the following values:
94+
* For *Cloud*: `Basic YourCreatedCloudToken`
8795
* For *Data Center*: `Bearer YourJiraToken`
8896

8997
. Annotate the component entity in the `catalog-info.yaml`.
@@ -116,8 +124,18 @@ where:
116124
`jira/team`:: Optional: Enter the Jira team ID (not the team title).
117125
`jira/custom-filter`:: Optional: Enter a custom Jira Query Language (JQL) filter.
118126

127+
. Statically ingest the catalog entity by adding the `catalog.locations` section in your {product-very-short} `{my-app-config-file}` that links to the `catalog-info.yaml` file
128+
+
129+
[source,yaml]
130+
----
131+
catalog:
132+
locations:
133+
- type: url
134+
target: https://github.com/owner/repo/catalog-info.yaml
135+
----
136+
119137
. (Optional) Configure Jira Open Issues metric thresholds.
120-
.. To customize the thresholds for the *Jira Open Issues* (`jira.open_issues`) metric, add the following to your `{product-very-short} app-config.yaml` file:
138+
.. To customize the thresholds for the *Jira Open Issues* (`jira.open_issues`) metric, add the following to your {product-very-short} `{my-app-config-file}` file:
121139
+
122140
[source,yaml]
123141
----
@@ -139,7 +157,7 @@ where:
139157
`scorecard:plugins:jira:open_issues:thresholds`:: Lists the default threshold values for the Jira open Issues metric.
140158

141159
. (Optional) Define global or custom mandatory filters.
142-
.. You can apply global mandatory filters or define custom filters that entities can override. Add the following to your `{product-very-short} app-config.yaml`:
160+
.. You can apply global mandatory filters or define custom filters that entities can override. Add the following to your {product-very-short} `{my-app-config-file}`:
143161
+
144162
[source,yaml]
145163
----

modules/observe/scorecards/proc-installing-scorecard-plugin-in-rhdh-instance.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,4 @@ plugins:
3737
- isKind: component
3838
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-scorecard-backend:bs_1.42.5__1.0.0!red-hat-developer-hub-backstage-plugin-scorecard-backend
3939
disabled: false
40-
----
41-
where:
42-
43-
`baseUrl`:: Enter the Jira URL.
44-
`token`:: Enter the Jira token.
40+
----

modules/observe/scorecards/ref-override-rules-to-configure-entity-specific-thresholds.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[id="ref-override-rules-to-configure-entity-specific-thresholds_{context}"]
44
= Threshold rules to metrics for your Scorecard plugin
55

6-
You can override individual threshold rules for a specific component by using annotations in its `catalog-info.yaml` file. These annotations are merged with the existing global rules defined in your `{product-very-short} app-config.yaml` file.
6+
You can override individual threshold rules for a specific component by using annotations in its `catalog-info.yaml` file. These annotations are merged with the existing global rules defined in your {product-very-short} `{my-app-config-file}` file.
77

88
.Annotation Format Reference
99

@@ -32,7 +32,7 @@ The annotation key follows a strict structure:
3232

3333
.Example: Entity Annotation Override
3434

35-
The following example describes the entity overriding only the `warning` and `error` rules for the `jira.open_issues` metric. The `success` rule falls back to the value defined in the global `{product-very-short} app-config.yaml` file.
35+
The following example describes the entity overriding only the `warning` and `error` rules for the `jira.open_issues` metric. The `success` rule falls back to the value defined in the global {product-very-short} `{my-app-config-file}` file.
3636

3737
[source,yaml]
3838
----

0 commit comments

Comments
 (0)