From 01883bd37605de0c5da327f01878eb5901f2f6de Mon Sep 17 00:00:00 2001
From: phakob
Date: Tue, 31 May 2022 19:06:37 +0400
Subject: [PATCH] [#181627193]: Updated federation part of docs
---
configuring/multi-foundation-monitoring.html.md.erb | 5 +----
configuring/optional-config/federation.html.md.erb | 10 +++++++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/configuring/multi-foundation-monitoring.html.md.erb b/configuring/multi-foundation-monitoring.html.md.erb
index 199f90e6..f24f88b7 100644
--- a/configuring/multi-foundation-monitoring.html.md.erb
+++ b/configuring/multi-foundation-monitoring.html.md.erb
@@ -49,10 +49,7 @@ foundation or the TKGI Control Plane. To add a scrape job for a Healthwatch Expo
1. Nagivate to the Ops Manager Installation Dashboard for the foundation you want to monitor.
1. Click the **Healthwatch Exporter for Tanzu Application Service** tile.
1. Select the **Status** tab.
- 1. Record the following IP addresses:
- * In the **TAS Counter Exporter** row, record the IP address of the counter metric exporter VM from the **IPs** column.
- * In the **TAS Gauge Exporter** row, record the IP address of the gauge metric exporter VM from the **IPs** column.
- * In the **TAS Timer Exporter** row, record the IP address of the timer metric exporter VM from the **IPs** column.
+ 1. Record the external IP addresses of the **TAS Counter Exporter**, **TAS Gauge Exporter** and **TAS Timer Exporter** from your cloud platform:
1. Select the **Credentials** tab.
1. In the row for **Healthwatch Exporter Client Mtls**, click **Link to Credential**.
1. Record the credentials for **Healthwatch Exporter Client Mtls**.
diff --git a/configuring/optional-config/federation.html.md.erb b/configuring/optional-config/federation.html.md.erb
index 65b8cfbe..f577497d 100644
--- a/configuring/optional-config/federation.html.md.erb
+++ b/configuring/optional-config/federation.html.md.erb
@@ -53,7 +53,8 @@ Tile Through an Automated Pipeline](../../installing/automated-pipeline.html).
1. Click the **Healthwatch** tile.
1. Select the **Credentials** tab.
1. In the **Promxy Client Mtls** row of the **TSDB** section, click **Link to Credential**.
- 1. Record the values of `private_key_pem` and `cert_pem`. These values are the private key and certificate for **Promxy Client mTLS**.
+ 1. Record the values of `private_key_pem` and `cert_pem`. These values are the private key and certificate for **Promxy Client mTLS**. (**Note** this data is provided in json format
+ and contains `\n` which should be converted into newlines manually in text editor.)
1. Retrieve the certificate for the Ops Manager root certificate authority (CA) of the foundation you want to monitor. For more information, see the [Ops
Manager documentation](https://docs.pivotal.io/ops-manager/security/pcf-infrastructure/managing-certificates.html#root-certs).
1. Navigate to the Ops Manager Installation Dashboard for your monitoring foundation.
@@ -80,9 +81,9 @@ Tile Through an Automated Pipeline](../../installing/automated-pipeline.html).
your load balancer or DNS entry in each target listed under the targets
property instead of the IP address for the Prometheus
instance.
1. For **Certificate and private key for TLS**, enter the certificate and private key you recorded from the **Promxy Client mTLS** row in the
- **Credentials** tab in the Healthwatch tile installed on the foundation you want to monitor in a previous step.
+ **Credentials** tab in the Healthwatch tile installed on the foundation you want to monitor in a previous step. (**Note** please make sure that `\n` symbols had been replaced with newlines.)
1. For **CA certificate for TLS**, enter the Ops Manager root CA certificate for the foundation you want to monitor that you recorded in a previous step.
- 1. For **Target server name**, enter `promxy`.
+ 1. For **Target server name**, enter `hwexporter`.
1. Click **Save**.
@@ -92,6 +93,9 @@ Tile Through an Automated Pipeline](../../installing/automated-pipeline.html).
For more information, see [Configure and Deploy Your Tile Using the om CLI](../../installing/automated-pipeline.html#om) in _Installing, Configuring, and
Deploying a Tile Through an Automated Pipeline_.
+ To check if your configured federation is working, go to 'Grafana' UI and run an `up` query from 'Explore' tab. In the result look for `job` or `external_ip`
+ which was provided in 'Scrape job configuration parameters' in 'Ops Manager'.
+
For more information about configuring scrape jobs, see [Configure Prometheus](../configuring-healthwatch.html#prometheus) in _Configuring Healthwatch_ and
the [Prometheus documentation](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config).