2

I installed Istio 1.6, using istioctl install --set profile=demo. But I could only couple of metrics related to Kubernetes nodes. I can see configuration related Kubernetes Node:

kubernetes_sd_configs:
  - role: node   relabel_configs:
  - action: labelmap
    regex: __meta_kubernetes_node_label_(.+)
  - target_label: __address__
    replacement: kubernetes.default.svc:443
  - source_labels: [__meta_kubernetes_node_name]
    regex: (.+)
    target_label: __metrics_path__
    replacement: /api/v1/nodes/${1}/proxy/metrics

Do I need to install node exporter daemonset?

Thanks

Pragmatic
  • 3,093
  • 4
  • 33
  • 62

1 Answers1

1

You must have missed some step. I reproduced and it is looking good on my end.

Double check this steps:

Verify that the Prometheus service is running in the cluster:

$ kubectl -n istio-system get svc prometheus

Launch the Prometheus UI

istioctl dashboard prometheus

Execute a Prometheus query(click Execute ). E.g.:

istio_requests_total

Generate some traffic against the product page:

export INGRESS_HOST=$(minikube ip)
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT

curl http://$GATEWAY_URL/productpage

Edit: for node metrics

Yes, you are right: node exporter is not included.
Fastest way to add it manually is using Helm(literally one line after helm is prepared):

// Install helm
curl -L https://git.io/get_helm.sh | bash

// Install tiller
helm init

// Deploy node-exporter
helm install stable/prometheus-node-exporter

// Launch prometheus
istioctl dashboard prometheus

// Or even better, grafana
istioctl dashboard grafana

If you are using grafana, you can import dashboard ID: 11074 for a fancy display of the data gathered from node exporter:

enter image description here

Neo Anderson
  • 5,957
  • 2
  • 12
  • 29
  • Thanks @Neo for your response. I do see metrics from istio. But I am looking for metrics about the Kubernetes nodes, like cpu, memory usage etc. – Pragmatic Aug 01 '20 at 15:50
  • Hi...oh...I understood the opposite - my bad. Yes, node exporter is one option and it is not included. It has to be added manually. Adding a quick how-to in the answer – Neo Anderson Aug 01 '20 at 21:50