You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assemblies/assembly-configuring-scorecards-in-rhdh.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
:_mod-docs-content-type: ASSEMBLY
2
2
3
3
[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
5
5
:context: assembly-configuring-scorecards-in-rhdh
6
6
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:
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.
7
7
8
8
The custom configuration completely replaces the provider's defaults. If you omit a threshold category (such as `success`), that category is not assigned.
Copy file name to clipboardExpand all lines: modules/observe/scorecards/proc-configuring-github-scorecards-in-rhdh-instance.adoc
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ You can view GitHub metrics for software components registered in the {product-v
13
13
* You must have {configuring-book-link}[added a custom {product-very-short} application configuration] and have enough permissions to change it.
14
14
15
15
.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:
17
17
18
18
. 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:
19
19
.. 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
. 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`:
60
50
+
61
51
[source,yaml]
62
52
----
@@ -95,9 +85,17 @@ where:
95
85
You must add the team entity to the Catalog to ensure the provided permissions are applicable.
96
86
====
97
87
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:
.. 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:
Copy file name to clipboardExpand all lines: modules/observe/scorecards/proc-configuring-jira-scorecards-in-rhdh-instance.adoc
+36-18Lines changed: 36 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ The following Jira versions are supported:
17
17
* You must have {configuring-book-link}[added a custom {product-very-short} application configuration] and have enough permissions to change it.
18
18
19
19
.Procedure
20
+
To install and configure Jira Scorecards in your {product-very-short} instance, complete the following steps:
20
21
21
22
. Create a Jira configuration token using one of the following methods, depending on your Jira product:
22
23
** 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`.
** 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.
29
30
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`
31
34
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`:
You must use the proxy setup to ensure configuration compatibility if the Roadie Jira Frontend Plugin is also in use.
71
+
====
65
72
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:
67
74
+
68
75
[source,yaml]
69
76
----
@@ -82,8 +89,9 @@ jira:
82
89
----
83
90
where:
84
91
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`
87
95
* For *Data Center*: `Bearer YourJiraToken`
88
96
89
97
. Annotate the component entity in the `catalog-info.yaml`.
@@ -116,8 +124,18 @@ where:
116
124
`jira/team`:: Optional: Enter the Jira team ID (not the team title).
117
125
`jira/custom-filter`:: Optional: Enter a custom Jira Query Language (JQL) filter.
118
126
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
. (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:
121
139
+
122
140
[source,yaml]
123
141
----
@@ -139,7 +157,7 @@ where:
139
157
`scorecard:plugins:jira:open_issues:thresholds`:: Lists the default threshold values for the Jira open Issues metric.
140
158
141
159
. (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}`:
= Threshold rules to metrics for your Scorecard plugin
5
5
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.
7
7
8
8
.Annotation Format Reference
9
9
@@ -32,7 +32,7 @@ The annotation key follows a strict structure:
32
32
33
33
.Example: Entity Annotation Override
34
34
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.
0 commit comments