Kiali Logo

Virtual Machine workloads


Kiali supports visualizing Virtual Machine workloads (WorkloadEntry) on the graph the same as pod-based workloads running inside a Kubernetes cluster. You must ensure that Istio Proxy is running and correctly configured on the Virtual Machine and Prometheus must be able to scrape the metrics endpoint of the Istio Proxy running on the VM. From there, Kiali will be able to read the traffic telemetry for the Virtual Machine workloads and incorporate the workloads into the graph.

  Kiali does not currently distinguish between pod-based and VM-based workloads nor does Kiali support viewing additional details for the VM-based workloads beyond what is displayed on the graph. One way to distinguish between the two is to give the VM-based workloads a different version label than the pod-based workloads.

Configuring Prometheus to scrape VM-based Istio Proxy

Once the Istio Proxy is running on a Virtual Machine, configuring Prometheus to scrape the VM’s Istio Proxy metrics endpoint is the only configuration Kiali needs to display traffic for the VM-based workload. Configuring Prometheus will vary between environments. Here’s a very simple example of a Prometheus configuration that includes a job to scrape VM based workloads:

- job_name: bookinfo-vms
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /stats/prometheus
  scheme: http
  follow_redirects: true
  - targets:
    - details-v1:15020
    - productpage-v1:15020
    - ratings-v1:15020
    - reviews-v1:15020
    - reviews-v2:15020
    - reviews-v3:15020