3

I have been trying to install Kiali on an Istio (beta) enabled GKE cluster, I am following the official documentation to install Kiali using this link but Prometheus is somehow damaged since GCP has changed the name of Prometheus from "Prometheus" to "promsd" and Kiali dashboard keeps on pointing to http://prometheus.istio-system.com:9090 instead of http://promsd.istio-system.com:9090. How should I fix this issue in a default ISTIO ENABLED GKE Cluster?

john mich
  • 2,477
  • 3
  • 17
  • 32
  • 1
    Just an idea from me, I would recommend to use istio on-prem instead of the addon, addon is old compare to on-prem version, and you can [install](https://istio.io/latest/docs/setup/getting-started/#download) the on-prem version with istioctl in 3minutes. Then install kiali and prometheus addons, as mentioned [here](https://istio.io/latest/docs/tasks/observability/gateways/#configuring-remote-access). With istio 1.6+ you can use prometheus to scrape metrics like with prometheus helm, more informations [here](https://istio.io/latest/docs/ops/integrations/prometheus/#option-2-metrics-merging). – Jakub Aug 17 '20 at 12:12
  • Got it, thanks I'll take a look. – john mich Aug 17 '20 at 13:00

3 Answers3

1

You could check the kiali configmap in namespace istio-system (assuming you used the default namespace for istio installation). There should be a prometheus tag below external services. Change it and restart the kiali pod.

Update 20200821 : our config map (Istio (v1.5.6) installed via istioctl)

kind: ConfigMap
apiVersion: v1
metadata:
  name: kiali
  namespace: istio-system
  selfLink: /api/v1/namespaces/istio-system/configmaps/kiali
  uid: 660a2bfe-c71b-45ab-a438-ed61532dd8e3
  resourceVersion: '31024421'
  creationTimestamp: '2020-07-24T10:18:24Z'
  labels:
    app: kiali
    operator.istio.io/component: AddonComponents
    operator.istio.io/managed: Reconcile
    operator.istio.io/version: 1.5.6
    release: istio
  annotations:

data:
  config.yaml: |
    istio_component_namespaces:
      grafana: istio-system
      tracing: istio-system
      pilot: istio-system
      prometheus: istio-system
    istio_namespace: istio-system
    auth:
      strategy: login
    deployment:
      accessible_namespaces: ['**']
    login_token:
      signing_key: "xxxxxxxxxxxxxxxxxx"
    server:
      port: 20001
      web_root: /kiali
    external_services:
      istio:
        url_service_version: http://istio-pilot.istio-system:8080/version
      tracing:
        url: 
        in_cluster_url: http://tracing/jaeger
      grafana:
        url: 
        in_cluster_url: http://grafana:3000
      prometheus:
        url: http://prometheus.istio-system:9090
Peter Claes
  • 285
  • 3
  • 9
  • Peter, I tried this approach but it seems that the Prometheus URL is not set in Configmap of kiali. Please find the config map here--> https://notepad.pw/41oe8i2l. – john mich Aug 16 '20 at 15:59
  • How did you install istio ? and what version of istio did you install ? – Peter Claes Aug 21 '20 at 11:59
  • Peter, I followed the following instructions- https://cloud.google.com/istio/docs/istio-on-gke/installing And since, I am using GKE 1.16, istio version is Istio 1.4.6- https://cloud.google.com/istio/docs/istio-on-gke/versions – john mich Aug 23 '20 at 09:09
  • perhaps you can just add the "external services" section ? (and restart kiali) – Peter Claes Aug 26 '20 at 06:17
  • @Peter, Changing the entries in the CM has no affect. – Sanjeev Apr 27 '23 at 14:03
1

To make it work I had to edit ConfigMap called kiali inside of istio-system namespace. I added this lines under the external_services section:

prometheus:
  url: http://my-prometheus-kube-prometh-prometheus.default.svc.cluster.local:9090/

enter image description here

Aleksei Mialkin
  • 2,257
  • 1
  • 28
  • 26
  • I know - this is old post and by now you might find out a solution. but I think the prometheus is not install and that's why it's not there. use kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/prometheus.yaml to install that and then restart istio-egresgateway and other pods – Brijesh Shah Nov 22 '21 at 22:44
  • Newest version does not work. Kiali cannot find external prometheus in the same cluster even after providing the correct entry in the CM. – Sanjeev Apr 27 '23 at 14:16
0

I had a similar error message (Not in GCP), and got resolved it by installing Prometheus:

$ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/addons/prometheus.yaml

replace the release-1.13 with your istio version

https://istio.io/latest/docs/ops/integrations/prometheus/

Jay Ehsaniara
  • 1,421
  • 17
  • 24