Search code examples
kubernetesprometheusmetricsistioprometheus-operator

How to integrate Istio with Prometheus


I need to do a POC on collecting k8s application metrics using Istio + Prometheus. My prometheus is running on a VM. I do not want to run Prometheus as a container in kubernetes.
Can anyone help me getting the right documentation for this? Or suggest how can I do this without running prometheus as a pod in k8s?


Solution

  • You can update the config-map in helm and istio adapter will take care for other stuff.

    you can find more details at this github issue


    Take a look at this example.

    You can bring your own Prometheus to Istio, with three quick steps.

    • First, update your Prometheus configuration. Prometheus relies on a scrape config model, where targets represent /metrics endpoints, ingested by the Prometheus server.
    • Second, update your Prometheus deployment to mount Istio's certificates into Prometheus. This allows Prometheus to scrape Istio workloads when mutual TLS is enabled. To do this, mount in the istio.default secret into your Prometheus deployment YAML
    • Lastly, update Istio's configuration to use a custom Prometheus address.