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
# Getting the authentication of the HAProxy router
2
-
The metrics endpoint of the HAProxy router in OpenShift 3.11 has a basic HTTP authentication configuration with username and password.
1
+
# Integrating HAProxy router in the Prometheus Cluster Monitoring
2
+
The HAProxy router metrics endpoint is not included in the Prometheus Cluster Monitoring in version 3.11 so you need to create a prometheus job and add some permissions to prometheus service account
3
3
4
-
To retrieve the username and password, run the following commands:
>Note: to execute these commands ou will need the tool [jq](https://stedolan.github.io/jq/)
12
+
2. Give permission to prometheus to scrape router metrics using bearer token:
14
13
15
-
The Prometheus Monitoring stack is installed with OpenShift Container Platform by default so there is no need of additional configuration in prometheus.yml file
>Note: to execute these commands ou will need the tool [jq](https://stedolan.github.io/jq/)
14
-
15
-
The Prometheus Monitoring stack is installed with OpenShift Container Platform by default so there is no need of additional configuration in prometheus.yml file
16
-
17
-
You can now check haproxy router metrics (remember to port-forward port 1936):
18
-
19
-
```
20
-
curl -u $USER:$PASS http://ROUTERIP:1936/metrics
21
-
```
1
+
# Integrating HAProxy router in the Prometheus Cluster Monitoring
2
+
The HAProxy router metrics endpoint is included in the Prometheus Cluster Monitoring stack in versions 4.X so you don't need to apply any special configuration. You can see the metrics from the Prometheus console
0 commit comments