Skip to content

Commit a215a8f

Browse files
committed
RHDEVDOCS-3424-remove-prometheus-ui-from-docs
1 parent d2ba3d8 commit a215a8f

7 files changed

+59
-23
lines changed

modules/monitoring-accessing-third-party-monitoring-uis.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
= Accessing third-party monitoring UIs
88

99
[role="_abstract"]
10-
{product-title} does not provide or support direct access to third-party web user interfaces (UIs) for the following components in the monitoring stack: Alertmanager, Thanos Ruler, and Thanos Querier.
11-
As an alternative to these third-party UIs, navigate to the *Observe* section of the {product-title} web console to access metrics, alerting, metrics targets, and dashboard UIs for platform components.
10+
{product-title} does not provide or support direct access to third-party web user interfaces (UIs) for the following components in the monitoring stack: Alertmanager, Prometheus, Thanos Ruler, and Thanos Querier.
11+
As an alternative to these third-party UIs, navigate to the *Observe* section of the {product-title} web console to access alerting, metrics, dashboards, targets, and other UIs for platform components.
1212

1313
[NOTE]
1414
====
15-
Although you can access the third-party Grafana and Prometheus web UIs from the web console or the CLI, this access is deprecated and is planned to be removed in a future {product-title} release.
15+
Although you can access the third-party Grafana web UI from the web console or the CLI, this access is deprecated and is planned to be removed in a future {product-title} release.
1616
====
1717

1818

modules/monitoring-accessing-third-party-monitoring-web-service-apis.adoc

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,27 @@
99
[role="_abstract"]
1010
You can directly access third-party web service APIs from the command line for monitoring stack components such as Prometheus, Alertmanager, Thanos Ruler, and Thanos Querier.
1111

12-
The following example shows how to query the service API receivers for Alertmanager.
12+
The following example commands show how to query the service API receivers for Alertmanager.
1313
This example requires that the associated user account be bound against the `monitoring-alertmanager-edit` role in the `openshift-monitoring` namespace and that the account has the privilege to view the route.
1414
This access only supports using a Bearer Token for authentication.
1515

16-
[source, terminal]
16+
[source,terminal]
17+
----
18+
$ oc login -u <username> -p <password>
19+
----
20+
21+
[source,terminal]
1722
----
1823
$ host=$(oc -n openshift-monitoring get route alertmanager-main -ojsonpath={.spec.host})
24+
----
25+
26+
[source,terminal]
27+
----
1928
$ token=$(oc whoami -t)
29+
----
30+
31+
[source,terminal]
32+
----
2033
$ curl -H "Authorization: Bearer $token" -k "https://$host/api/v2/receivers"
2134
----
2235

modules/monitoring-determining-why-prometheus-is-consuming-disk-space.adoc

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can use the following measures when Prometheus consumes a lot of disk:
1515

1616
* *Check the number of scrape samples* that are being collected.
1717
18-
* *Check the time series database (TSDB) status in the Prometheus UI* for more information on which labels are creating the most time series. This requires cluster administrator privileges.
18+
* *Check the time series database (TSDB) status using the Prometheus HTTP API* for more information about which labels are creating the most time series. Doing so requires cluster administrator privileges.
1919
2020
* *Reduce the number of unique time series that are created* by reducing the number of unbound attributes that are assigned to user-defined metrics.
2121
+
@@ -47,9 +47,32 @@ topk(10,count by (job)({__name__=~".+"}))
4747

4848
** *If the metrics relate to a core {product-title} project*, create a Red Hat support case on the link:https://access.redhat.com/[Red Hat Customer Portal].
4949

50-
. Check the TSDB status in the Prometheus UI.
51-
.. In the *Administrator* perspective, navigate to *Networking* -> *Routes*.
52-
.. Select the `openshift-monitoring` project in the *Project* list.
53-
.. Select the URL in the `prometheus-k8s` row to open the login page for the Prometheus UI.
54-
.. Choose *Log in with OpenShift* to log in using your {product-title} credentials.
55-
.. In the Prometheus UI, navigate to *Status* -> *TSDB Status*.
50+
. Review the TSDB status using the Prometheus HTTP API by running the following commands as a cluster administrator:
51+
+
52+
[source,terminal]
53+
----
54+
$ oc login -u <username> -p <password>
55+
----
56+
+
57+
[source,terminal]
58+
----
59+
$ host=$(oc -n openshift-monitoring get route prometheus-k8s -ojsonpath={.spec.host})
60+
----
61+
+
62+
[source,terminal]
63+
----
64+
$ token=$(oc whoami -t)
65+
----
66+
+
67+
[source,terminal]
68+
----
69+
$ curl -H "Authorization: Bearer $token" -k "https://$host/api/v1/status/tsdb"
70+
----
71+
+
72+
.Example output
73+
[source,terminal]
74+
----
75+
"status": "success",
76+
----
77+
78+

modules/monitoring-investigating-why-user-defined-metrics-are-unavailable.adoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,12 @@ If there is a issue with the service monitor, the logs might include an error si
9191
level=warn ts=2020-08-10T11:48:20.906739623Z caller=operator.go:1829 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=eagle/eagle namespace=openshift-user-workload-monitoring prometheus=user-workload
9292
----
9393

94-
. *Review the target status for your project* in the Prometheus UI directly.
95-
.. Establish port-forwarding to the Prometheus instance in the `openshift-user-workload-monitoring` project:
96-
+
97-
[source,terminal]
98-
----
99-
$ oc port-forward -n openshift-user-workload-monitoring pod/prometheus-user-workload-0 9090
100-
----
101-
+
102-
.. Open http://localhost:9090/targets in a web browser and review the status of the target for your project directly in the Prometheus UI. Check for error messages relating to the target.
94+
. *Review the target status for your endpoint* on the *Metrics targets* page in the {product-title} web console UI.
95+
.. Log in to the {product-title} web console and navigate to *Observe**Targets* in the *Administrator* perspective.
96+
97+
.. Locate the metrics endpoint in the list, and review the status of the target in the *Status* column.
98+
99+
.. If the *Status* is *Down*, click the URL for the endpoint to view more information on the *Target Details* page for that metrics target.
103100

104101
. *Configure debug level logging for the Prometheus Operator* in the `openshift-user-workload-monitoring` project.
105102
.. Edit the `user-workload-monitoring-config` `ConfigMap` object in the `openshift-user-workload-monitoring` project:

monitoring/accessing-third-party-monitoring-uis-and-apis.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ include::_attributes/common-attributes.adoc[]
77
toc::[]
88

99
[role="_abstract"]
10-
In {product-title} {product-version}, you cannot access third-party web browser user interfaces (UIs) for the following monitoring components: Alertmanager, Thanos Ruler, and Thanos Querier.
11-
However, you can access web UIs for Grafana and Prometheus, although this access is deprecated and is planned to be removed in a future {product-title} release.
10+
In {product-title} {product-version}, you cannot access third-party web browser user interfaces (UIs) for the following monitoring components: Alertmanager, Prometheus, Thanos Ruler, and Thanos Querier.
11+
However, you can access the web UI for Grafana, although this access is deprecated and is planned to be removed in a future {product-title} release.
1212
In addition, you can access web service APIs for third-party monitoring components from the command line interface (CLI).
1313

1414
// Accessing web UIs for third-party monitoring components

monitoring/troubleshooting-monitoring-issues.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ include::modules/monitoring-investigating-why-user-defined-metrics-are-unavailab
1414

1515
* xref:../monitoring/configuring-the-monitoring-stack.adoc#creating-user-defined-workload-monitoring-configmap_configuring-the-monitoring-stack[Creating a user-defined workload monitoring config map]
1616
* See xref:../monitoring/managing-metrics.adoc#specifying-how-a-service-is-monitored_managing-metrics[Specifying how a service is monitored] for details on how to create a `ServiceMonitor` or `PodMonitor` resource
17+
* See xref:../monitoring/managing-metrics-targets.adoc#monitoring-accessing-the-metrics-targets-page_managing-metrics-targets[Accessing metrics targets in the Administrator perspective]
18+
1719
1820
// Determining why Prometheus is consuming a lot of disk space
1921
include::modules/monitoring-determining-why-prometheus-is-consuming-disk-space.adoc[leveloffset=+1]

support/troubleshooting/investigating-monitoring-issues.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ include::modules/monitoring-investigating-why-user-defined-metrics-are-unavailab
1919

2020
* xref:../../monitoring/configuring-the-monitoring-stack.adoc#creating-user-defined-workload-monitoring-configmap_configuring-the-monitoring-stack[Creating a user-defined workload monitoring config map]
2121
* See xref:../../monitoring/managing-metrics.adoc#specifying-how-a-service-is-monitored_managing-metrics[Specifying how a service is monitored] for details on how to create a service monitor or pod monitor
22+
* See xref:../../monitoring/managing-metrics-targets.adoc#monitoring-accessing-the-metrics-targets-page_managing-metrics-targets[Accessing metrics targets in the Administrator perspective]
2223
2324
// Determining why Prometheus is consuming a lot of disk space
2425
include::modules/monitoring-determining-why-prometheus-is-consuming-disk-space.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)