|
9 | 9 |
|
10 | 10 | 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.
|
11 | 11 |
|
12 |
| -[NOTE] |
13 |
| -==== |
14 |
| -Only cluster administrators have access to the third-party UIs provided with {product-title} Monitoring. |
15 |
| -==== |
16 |
| - |
17 | 12 | .Prerequisites
|
18 | 13 |
|
19 | 14 | * You have access to the cluster as a user with the `cluster-admin` role or with view permissions for all projects.
|
20 | 15 | * You have installed the OpenShift CLI (`oc`).
|
21 | 16 |
|
22 | 17 | .Procedure
|
23 | 18 |
|
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*. |
25 | 22 |
|
26 | 23 | . Select *Insert Metric at Cursor* to view a list of predefined queries.
|
27 | 24 |
|
28 | 25 | . 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 | +==== |
29 | 34 |
|
30 | 35 | . To add multiple queries, select *Add Query*.
|
31 | 36 |
|
| 37 | +. To duplicate an existing query, select {kebab} next to the query, then choose *Duplicate query*. |
| 38 | + |
32 | 39 | . To delete a query, select {kebab} next to the query, then choose *Delete query*.
|
33 | 40 |
|
34 | 41 | . To disable a query from being run, select {kebab} next to the query and choose *Disable query*.
|
35 | 42 |
|
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. |
37 | 46 | +
|
38 | 47 | [NOTE]
|
39 | 48 | ====
|
40 | 49 | 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.
|
41 | 50 | ====
|
42 | 51 |
|
43 | 52 | . 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. |
|
0 commit comments