-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Enterprise 4.2 monitoring metrics ui #16495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
rh-max
wants to merge
3
commits into
openshift:enterprise-4.2
from
rh-max:enterprise-4.2-monitoring-metrics-ui
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
17
monitoring/cluster-monitoring/examining-cluster-metrics.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.