Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ Topics:
File: configuring-the-monitoring-stack
- Name: Managing cluster alerts
File: managing-cluster-alerts
- Name: Examining cluster metrics
File: examining-cluster-metrics
- Name: Accessing Prometheus, Alertmanager, and Grafana
File: prometheus-alertmanager-and-grafana
- Name: Exposing custom application metrics for autoscaling
Expand Down
Binary file added images/metrics-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions modules/monitoring-contents-of-the-metrics-ui.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Module included in the following assemblies:
//
// * monitoring/cluster-monitoring/examining-cluster-metrics.adoc

[id="contents-of-the-metrics-ui_{context}"]
= Contents of the Metrics UI

This section shows and explains the contents of the Metrics UI, a Web interface to Prometheus.

The *Metrics* page is located in *Monitoring* -> *Metrics* of the {product-title} web console.

image::../images/metrics-screen.png[]

. Actions.
* Add query.
* Expand all query tables.
* Delete all queries.
. Hide the plot.
. The interactive plot.
. The catalog of available metrics.
. Add query.
. Run queries.
. Query forms.
. Expand or collapse the form.
. The query.
. Clear query.
. Disable query.
. Actions for a specific query.
* Disable query.
* Hide all series of the query from the plot.
* Delete query.
. The metrics table for a query.
. Color assigned to the graph of the metric. Clicking the square shows or hides the metric's graph.

Additionally, there is a link to the old Prometheus interface next to the title of the page.
26 changes: 26 additions & 0 deletions modules/monitoring-exploring-the-visualized-metrics.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Module included in the following assemblies:
//
// * monitoring/cluster-monitoring/examining-cluster-metrics.adoc

[id="exploring-the-visualized-metrics_{context}"]
= Exploring the visualized metrics

After running the queries, the metrics are displayed on the interactive plot. The X axis of the plot represents time. The Y axis represents the metrics values. Each metric is shown as a colored graph. You can manipulate the plot and explore the metrics.

.Procedure

. Initially, all metrics from all enabled queries are shown on the plot. You can select which metrics are shown.
* To hide all metrics from a query, click the action button of the query and click "Hide all series".
* To hide a specific metric, go to the query table and click the colored square near the metric name.
. To zoom into the plot and change the shown time range, do one of the following:
+
--
* Visually select the time range by clicking and dragging on the plot horizontally.
* Use the menu in the left upper corner to select the time range.
--
+
To reset the time range, click "Reset Zoom".
. To see outputs of all queries at a specific point in time, hold the mouse cursor on the plot at that point. Query outputs will appear in a popup box.
. For more detailed information about metrics of a specific query, expand the table of that query. Every metric is shown with its current value.
. To hide the plot, use the "Hide Graph" button.

30 changes: 30 additions & 0 deletions modules/monitoring-running-metrics-queries.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Module included in the following assemblies:
//
// * monitoring/cluster-monitoring/examining-cluster-metrics.adoc

[id="running-metrics-queries_{context}"]
= Running metrics queries

You begin working with metrics by entering one or several Prometheus Query Language (PromQL) queries.

.Procedure

. Open the OpenShift Container Platform web console and navigate to *Monitoring* -> *Metrics*.

. In the query field, enter your PromQL query.
* To show all available metrics and PromQL functions, use the "Insert Metric at Cursor" button.
. For multiple queries, use the "Add Query" button.
. For deleting queries, click the action button for the query and select "Delete query".
. For keeping but not running a query, click the "Disable query" button.
. Once you finish creating queries, click the "Run Queries" button. The metrics from the queries are visualized on the plot. If a query is invalid, the UI shows an error message.
+
[NOTE]
====
Queries that operate on large amounts of data might timeout or overload the browser when drawing timeseries graphs. To avoid this, you might prefer to hide the graph and calibrate your query using only the metrics table. Then, after finding a feasible query, enable the plot to draw the graphs.
====
+
. Optional: The page URL now contains the queries you ran. To use this set of queries again in the future, save this URL.

.Additional resources

See the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus Query Language documentation.]
17 changes: 17 additions & 0 deletions monitoring/cluster-monitoring/examining-cluster-metrics.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[id="examining-cluster-metrics"]
= Examining cluster metrics
include::modules/common-attributes.adoc[]
:context: querying-metrics

toc::[]

{product-title} 4 provides a Web interface to Prometheus, which enables you to run Prometheus Query Language (PromQL) queries and examine the metrics visualized on a plot. This provides an extensive overview of the cluster state and enables you to troubleshoot problems.

include::modules/monitoring-contents-of-the-metrics-ui.adoc[leveloffset=+1]
include::modules/monitoring-running-metrics-queries.adoc[leveloffset=+1]
include::modules/monitoring-exploring-the-visualized-metrics.adoc[leveloffset=+1]

.Next steps

xref:../../monitoring/cluster-monitoring/prometheus-alertmanager-and-grafana.adoc#prometheus-alertmanager-and-grafana[Access the Prometheus, Alertmanager, and Grafana.]

2 changes: 1 addition & 1 deletion monitoring/cluster-monitoring/managing-cluster-alerts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ include::modules/monitoring-expiring-silences.adoc[leveloffset=+1]

.Next steps

xref:../../monitoring/cluster-monitoring/prometheus-alertmanager-and-grafana.adoc#prometheus-alertmanager-and-grafana[Access the Prometheus, Alertmanager, and Grafana.]
xref:../../monitoring/cluster-monitoring/examining-cluster-metrics.adoc#examining-cluster-metrics[Examine cluster metrics.]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put the period after the link instead of as part of it.