Skip to content

Commit 25f2380

Browse files
Carol SmithCarol Smith
authored andcommitted
Updating image names and adding lightboxes
1 parent 9e2f289 commit 25f2380

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

articles/aks/deploy-postgresql-ha.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ In this article, you deploy a highly available PostgreSQL database on AKS.
4949
EOF
5050
```
5151
52-
## Install the CNPG operator
52+
## Install the Prometheus PodMonitors
5353
54-
The CNPG operator automatically creates PodMonitors for the CNPG instances using a set of default recording rules stored on the CNPG GitHub samples repo. In a production environment, these rules would be modified as needed.
54+
Prometheus creates PodMonitors for the CNPG instances using a set of default recording rules stored on the CNPG GitHub samples repo. In a production environment, these rules would be modified as needed.
5555
5656
1. Add the Prometheus Community Helm repo using the [`helm repo add`][helm-repo-add] command.
5757
@@ -316,21 +316,25 @@ kubectl --namespace $PG_NAMESPACE \
316316
317317
Once you have deployed the Postgres cluster and the pod monitor, you can view the metrics using the Azure portal in an Azure Monitor workspace.
318318
319-
:::image source="./media/deploy-postgresql-ha/cnpg-prom-metrics.png" alt-text="Screenshot showing metrics in an Azure Monitor workspace." lightbox="./media/deploy-postgresql-ha/cnpg-prom-metrics.png":::
319+
:::image source="./media/deploy-postgresql-ha/prometheus-metrics.png" alt-text="Screenshot showing metrics in an Azure Monitor workspace." lightbox="./media/deploy-postgresql-ha/prometheus-metrics.png":::
320320
321321
#### Option B - Managed Grafana
322322
323323
Alternatively, Once you have deployed the Postgres cluster and pod monitors, you can create a metrics dashboard on the Managed Grafana instance created by the deployment script to visualize the metrics exported to the Azure Monitor workspace. You can access the Managed Grafana via the Azure portal. Navigate to the Managed Grafana instance created by the deployment script and click on the Endpoint link as shown here:
324-
![Azure Managed Grafana Instance](./media/deploy-postgresql-ha/cnpg-graf-1.png)
324+
325+
:::image source="./media/deploy-postgresql-ha/grafana-metrics-1.png" alt-text="Screenshot showing an Azure Managed Grafana instance." lightbox="./media/deploy-postgresql-ha/grafana-metrics-1.png":::
325326
326327
Clicking on the Endpoint link will cause a new browser window to open where you can create dashboards on the Managed Grafana instance. Following the instructions to [configure an Azure Monitor data source](../azure-monitor/visualize/grafana-plugin.md#configure-an-azure-monitor-data-source-plug-in), you can then add visualizations to create a dashboard of metrics from the Postgres cluster. After setting up the data source connection, from the main menu, click the Data sources option and you should see a set of data source options for the data source connection as shown here:
327-
![Data Source Options](./media/deploy-postgresql-ha/cnpg-graf-2.png)
328+
329+
:::image source="./media/deploy-postgresql-ha/grafana-metrics-2.png" alt-text="Screenshot showing data source options." lightbox="./media/deploy-postgresql-ha/grafana-metrics-2.png":::
328330
329331
On the Managed Prometheus option, click the option to build a dashboard to open the dashboard editor. Once the editor window opens, click the Add visualization option then click the Managed Prometheus option to browse the metrics from the Postgres cluster. Once you have selected the metric you want to visualize, click the Run queries button to fetch the data for the visualization as shown here:
330-
![Construct Dashboard](./media/deploy-postgresql-ha/cnpg-graf-3.png)
332+
333+
:::image source="./media/deploy-postgresql-ha/grafana-metrics-3.png" alt-text="Screenshot showing construct dashboard." lightbox="./media/deploy-postgresql-ha/grafana-metrics-3.png":::
331334
332335
Click the Save button to add the panel to your dashboard. You can add other panels by clicking the Add button in the dashboard editor and repeating this process to visualize other metrics. Adding the metrics visualizations, you should have something that looks like this:
333-
![Save Dashboard](./media/deploy-postgresql-ha/cnpg-graf-4.png)
336+
337+
:::image source="./media/deploy-postgresql-ha/grafana-metrics-4.png" alt-text="Screenshot showing save dashboard." lightbox="./media/deploy-postgresql-ha/grafana-metrics-4.png":::
334338
335339
Click the Save icon to save your dashboard.
336340

articles/aks/postgresql-ha-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This diagram illustrates a PostgreSQL cluster setup with one primary replica and
5151

5252
Backups are stored on [Azure Blob Storage](/azure/storage/blobs/), providing another way to restore the database in the event of an issue with streaming replication from the primary replica.
5353

54-
![AKS CNPG Architecture](./media/postgresql-ha-overview/aks-cnpg-arch.png)
54+
:::image source="./media/postgresql-ha-overview/cnpg-architecture.png" alt-text="Screenshot showing CNPG architecture diagram." lightbox="./media/postgresql-ha-overview/cnpg-architecture.png":::
5555

5656
> [!NOTE]
5757
> The CNPG operator supports only *one database per cluster*. Plan accordingly for applications that require data separation at the database level.

0 commit comments

Comments
 (0)