Skip to content

Commit 6e02672

Browse files
authored
Merge pull request #48185 from bburt-rh/RHDEVDOCS-3922-observe-metrics-page-improvements
RHDEVDOCS-3922 - metrics page UI improvements
2 parents 1a8314a + ec8d8a9 commit 6e02672

3 files changed

+36
-22
lines changed

modules/monitoring-querying-metrics-for-all-projects-as-an-administrator.adoc

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,44 @@
99

1010
As a cluster administrator or as a user with view permissions for all projects, you can access metrics for all default {product-title} and user-defined projects in the Metrics UI.
1111

12-
[NOTE]
13-
====
14-
Only cluster administrators have access to the third-party UIs provided with {product-title} Monitoring.
15-
====
16-
1712
.Prerequisites
1813

1914
* You have access to the cluster as a user with the `cluster-admin` role or with view permissions for all projects.
2015
* You have installed the OpenShift CLI (`oc`).
2116
2217
.Procedure
2318

24-
. In the *Administrator* perspective within the {product-title} web console, select *Observe* -> *Metrics*.
19+
. Select the *Administrator* perspective in the {product-title} web console.
20+
21+
. Select *Observe* -> *Metrics*.
2522

2623
. Select *Insert Metric at Cursor* to view a list of predefined queries.
2724

2825
. To create a custom query, add your Prometheus Query Language (PromQL) query to the *Expression* field.
26+
+
27+
[NOTE]
28+
====
29+
As you type a PromQL expression, autocomplete suggestions appear in a drop-down list.
30+
These suggestions include functions, metrics, labels, and time tokens.
31+
You can use the keyboard arrows to select one of these suggested items and then press Enter to add the item to your expression.
32+
You can also move your mouse pointer over a suggested item to view a brief description of that item.
33+
====
2934

3035
. To add multiple queries, select *Add Query*.
3136

37+
. To duplicate an existing query, select {kebab} next to the query, then choose *Duplicate query*.
38+
3239
. To delete a query, select {kebab} next to the query, then choose *Delete query*.
3340

3441
. To disable a query from being run, select {kebab} next to the query and choose *Disable query*.
3542

36-
. Select *Run Queries* to run the queries that you have created. The metrics from the queries are visualized on the plot. If a query is invalid, the UI shows an error message.
43+
. To run queries that you created, select *Run Queries*.
44+
The metrics from the queries are visualized on the plot.
45+
If a query is invalid, the UI shows an error message.
3746
+
3847
[NOTE]
3948
====
4049
Queries that operate on large amounts of data might time out or overload the browser when drawing time series graphs. To avoid this, select *Hide graph* and calibrate your query using only the metrics table. Then, after finding a feasible query, enable the plot to draw the graphs.
4150
====
4251

4352
. Optional: The page URL now contains the queries you ran. To use this set of queries again in the future, save this URL.
44-
45-
[role="_additional-resources"]
46-
.Additional resources
47-
48-
* See the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus query documentation] for more information about creating PromQL queries.

modules/monitoring-querying-metrics-for-user-defined-projects-as-a-developer.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In the *Developer* perspective, the Metrics UI includes some predefined CPU, mem
1313

1414
[NOTE]
1515
====
16-
Developers can only use the *Developer* perspective and not the *Administrator* perspective. As a developer, you can only query metrics for one project at a time. Developers cannot access the third-party UIs provided with {product-title} monitoring that are for core platform components. Instead, use the Metrics UI for your user-defined project.
16+
Developers can only use the *Developer* perspective and not the *Administrator* perspective. As a developer, you can only query metrics for one project at a time in the *Observe* --> *Metrics* page in the web console for your user-defined project.
1717
====
1818

1919
.Prerequisites
@@ -25,18 +25,20 @@ Developers can only use the *Developer* perspective and not the *Administrator*
2525
2626
.Procedure
2727

28-
. From the *Developer* perspective in the {product-title} web console, select *Observe* -> *Metrics*.
28+
. Select the *Developer* perspective in the {product-title} web console.
29+
30+
. Select *Observe* -> *Metrics*.
2931

3032
. Select the project that you want to view metrics for in the *Project:* list.
3133

32-
. Choose a query from the *Select Query* list, or run a custom PromQL query by selecting *Show PromQL*.
34+
. Select a query from the *Select query* list, or create a custom PromQL query based on the selected query by selecting *Show PromQL*.
35+
36+
. Optional: Select *Custom query* from the *Select query* list to enter a new query.
37+
As you type, autocomplete suggestions appear in a drop-down list.
38+
These suggestions include functions and metrics.
39+
Click a suggested item to select it.
3340
+
3441
[NOTE]
3542
====
3643
In the *Developer* perspective, you can only run one query at a time.
3744
====
38-
39-
[role="_additional-resources"]
40-
.Additional resources
41-
42-
* See the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus query documentation] for more information about creating PromQL queries.

monitoring/managing-metrics.adoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,27 @@ include::modules/monitoring-specifying-how-a-service-is-monitored.adoc[leveloffs
3434
include::modules/monitoring-querying-metrics.adoc[leveloffset=+1]
3535
//include::modules/monitoring-contents-of-the-metrics-ui.adoc[leveloffset=+2]
3636
include::modules/monitoring-querying-metrics-for-all-projects-as-an-administrator.adoc[leveloffset=+2]
37+
38+
[role="_additional-resources"]
39+
.Additional resources
40+
41+
* For more information about creating PromQL queries, see the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus query documentation].
42+
3743
include::modules/monitoring-querying-metrics-for-user-defined-projects-as-a-developer.adoc[leveloffset=+2]
3844

3945
[role="_additional-resources"]
4046
.Additional resources
4147

42-
* See the xref:../monitoring/managing-metrics.adoc#querying-metrics-for-user-defined-projects-as-a-developer_managing-metrics[Querying metrics for user-defined projects as a developer] for details on accessing non-cluster metrics as a developer or a privileged user
48+
* For more information about creating PromQL queries, see the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus query documentation].
4349
4450
include::modules/monitoring-exploring-the-visualized-metrics.adoc[leveloffset=+2]
4551

4652
[role="_additional-resources"]
4753
.Additional resources
4854

49-
* See the xref:../monitoring/managing-metrics.adoc#querying-metrics_managing-metrics[Querying metrics] section on using the PromQL interface
55+
* See xref:../monitoring/managing-metrics.adoc#querying-metrics_managing-metrics[Querying metrics] for details on using the PromQL interface
56+
* See xref:../monitoring/managing-metrics.adoc#querying-metrics-for-all-projects-as-an-administrator_managing-metrics[Querying metrics for all projects as an administrator] for details on accessing metrics for all projects as an administrator.
57+
* See xref:../monitoring/managing-metrics.adoc#querying-metrics-for-user-defined-projects-as-a-developer_managing-metrics[Querying metrics for user-defined projects as a developer] for details on accessing non-cluster metrics as a developer or a privileged user.
5058
5159
== Next steps
5260

0 commit comments

Comments
 (0)