Commit 2b042f0
committed
fix(observability): configure ServiceMonitor for ASO secure metrics authentication
- Update azureserviceoperator-controller-manager-metrics-monitor to use HTTPS scheme
- Add bearerTokenFile authentication using ServiceAccount token
- Configure TLS with insecureSkipVerify for self-signed certificates
- Resolves 401 Unauthorized errors when Prometheus scrapes ASO metrics
The Azure Service Operator exposes secure metrics by default on HTTPS port 8443
requiring proper authentication. This change aligns with ASO documentation at
https://azure.github.io/azure-service-operator/guide/metrics/ which states
"A ServiceAccount token is required to scrape metrics securely".
Fixes: ASO metrics like go_memstats_sys_bytes not appearing in Prometheus
Signed-off-by: Bryan Cox <brcox@redhat.com>1 parent 5b0130c commit 2b042f0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
0 commit comments