Collect istiod and Istio-proxy metrics using Prometheus Operator#
Introduction#
The Istio control plane (istiod) and the Istio proxies (and any filters installed in them, such as Packet Inspector 1 and 2 filters) expose metrics that you can scrape using Prometheus. If you have Prometheus Operator installed, you can easily scrape the istiod and Istio-proxy metrics by installing the associated service monitor and pod monitor included with Aspen Mesh.
Note
Metrics Collector (a Prometheus Server chart) collects these same metrics using scrape configurations instead of service and pod monitors but is deprecated.
Install the istiod service monitor and the Istio-proxy pod monitor#
Make sure you have Aspen Mesh and Prometheus Operator installed.
Change to the Aspen Mesh release directory.
Install the
istiodservice monitor and the Istio-proxy pod monitor:$ kubectl apply -f samples/addons/extras/prometheus-operator.yaml
Prometheus Operator should now be scraping metrics from
istiodand the Istio proxies. Both theistiodand Istio-proxy metrics are scraped every 15 seconds.