You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/alb-controller-backend-health-metrics.md
+33-15Lines changed: 33 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,21 @@ author: greglin
6
6
ms.service: application-gateway
7
7
ms.subservice: appgw-for-containers
8
8
ms.topic: article
9
-
ms.date: 02/27/2024
9
+
ms.date: 06/03/2024
10
10
ms.author: greglin
11
11
---
12
12
13
13
# ALB Controller - Backend Health and Metrics
14
14
15
-
Understanding backend health of your Kubernetes services and pods is crucial in identifying issues and assistance in troubleshooting. To help facilitate visibility into backend health, ALB Controller exposes backend health and metrics endpoints in all ALB Controller deployments.
15
+
Understanding backend health of your Kubernetes services and pods is crucial in identifying issues and assistance in troubleshooting. To help facilitate visibility into backend health, ALB Controller exposes backend health and metrics endpoints in all ALB Controller deployments.
16
16
17
17
ALB Controller's backend health exposes three different experiences:
18
18
19
19
1. Summarized backend health by Application Gateway for Containers resource
20
20
2. Summarized backend health by Kubernetes service
21
21
3. Detailed backend health for a specified Kubernetes service
22
22
23
-
ALB Controller's metric endpoint exposes both metrics and summary of backend health. This endpoint enables exposure to Prometheus.
23
+
ALB Controller's metric endpoint exposes both metrics and summary of backend health. This endpoint enables exposure to Prometheus.
24
24
25
25
Access to these endpoints can be reached via the following URLs:
26
26
@@ -35,27 +35,45 @@ Any clients or pods that have connectivity to this pod and port may access these
35
35
36
36
### Discovering backend health
37
37
38
-
Run the following kubectl command to identify your ALB Controller pod and its corresponding IP address.
38
+
The ALB Controller exposes backend health on the ALB controller pod that is acting as primary.
39
+
40
+
To find the primary pod, run the following command:
Once the kubectl command is listening, open another terminal (or cloud shell session) and execute curl to 127.0.0.1 to be redirected to the pod.
54
56
55
57
```bash
56
-
curl http://10.1.0.247:8000
58
+
curl http://127.0.0.1:8000
57
59
```
58
60
61
+
# [Access backend health via controller pod directly](#tab/backend-health-direct-access)
62
+
63
+
Run the following kubectl command to identify the IP address of the primary ALB Controller pod.
64
+
65
+
```bash
66
+
kubectl get pod <alb controller pod name from previous step> -n $CONTROLLER_NAMESPACE -o jsonpath="{.status.podIP}"
67
+
```
68
+
69
+
Once you have the IP address of your alb-controller pod, you may validate the backend health service is running by browsing to http://\<pod-ip\>:8000.
70
+
71
+
```bash
72
+
curl http://<your-pod-ip>:8000
73
+
```
74
+
75
+
---
76
+
59
77
Example response:
60
78
61
79
```text
@@ -188,9 +206,9 @@ Example output:
188
206
189
207
## Metrics
190
208
191
-
ALB Controller currently surfaces metrics following [text based format](https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format) to be exposed to Prometheus.
209
+
ALB Controller currently surfaces metrics following [text based format](https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format) to be exposed to Prometheus. Access to these logs are available on port 8001 of the primary alb controller pod `http://\<alb-controller-pod-ip\>:8001/metrics`.
192
210
193
-
The following Application Gateway for Containers specific metrics are currently available today:
0 commit comments