Which of the following is the correct syntax to enable Prometheus metrics scraping in Istio's sidecar proxy configuration?
easy📝 Syntax Q3 of 15
Kubernetes - Service Mesh
Which of the following is the correct syntax to enable Prometheus metrics scraping in Istio's sidecar proxy configuration?
AenableMetrics: true
BprometheusScrape: enabled
Cprometheus.io/scrape: 'true'
Dmetrics.enabled: true
Step-by-Step Solution
Solution:
Step 1: Recall Istio annotation for Prometheus scraping
Istio uses Kubernetes pod annotations like 'prometheus.io/scrape: "true"' to enable Prometheus scraping on pods.
Step 2: Verify other options
enableMetrics: true, prometheusScrape: enabled, and metrics.enabled: true are not valid Kubernetes annotations or Istio configuration keys for enabling Prometheus scraping.