DevSecOps for BBK
  • Introduction
  • Getting Started
    • Virtual Training Practices
    • Training Plan
    • Tools and Configuration
    • Troubleshooting
  • Docker Fundamentals
    • Docker Setup
    • Docker First Container
    • Docker Network Basics
    • Docker Network Exercise
    • Docker Volume Basics
    • Docker Storage
  • Dockerfile Fundamentals
    • Dockerfile Instructions
    • Dockerfile Environment Variables
    • Dockerfile Build Arguments
    • Non-privileged Containers
    • Dockerfile Order of Execution
    • Dockerfile Volume
    • Entrypoint Command
    • Multiple Stage Build
  • Container Management
    • Containers Start Automatically
  • Docker Security
    • Seccomp Profile
  • Docker Compose
    • Docker Compose Install
    • Docker Compose Commands
    • Docker Compose File
    • Docker Compose Volumes and Network
  • K8s Cluster Setup
    • Minikube Installation
    • Calico Networking
    • K8s Walkthrough
    • K8s Cheat Sheet
  • Understand K8s
    • Pod Connectivity
    • Deployments
    • Service Cluster IP
    • Service NodePort
    • ClusterIP Exercise
    • NodePort Exercise
    • Service LoadBalancer
    • Configmap
    • Secrets
  • Application Lifecycle Management
    • Rolling Updates and Rollback
    • Multi Container Pod
  • K8s Storage
    • Persistent Volume
    • Persistent Volume Claim
    • PVC in POD
  • Istio
    • AKS Setup
    • Kubectl Setup in Windows
    • Istio Setup Manual
    • Istio Demo App
    • Istio Observability
  • Terraform
    • Terraform Setup
    • Terraform Demo
    • Azure Terraform Setup
  • Terraform AWS
    • Terraform AWS Setup
    • Terraform AWS Demo S3
  • Refrences
    • Docker Static Site
    • Docker First Image
Powered by GitBook
On this page
  • Istio Observability Setup
  • Kiali Dashboard Access
  • Prometheus Dashboard Access
  • Execute a Prometheus query.
  • Other queries to try:
  • Grafana Dashboard Access
  • Jaeger Dashboard Access
  • Troubleshooting
  • Istio Cleanup / Uninstall
  1. Istio

Istio Observability

PreviousIstio Demo AppNextTerraform

Last updated 2 years ago

Istio Observability Setup

Istio integrates with different telemetry applications. These can help you gain an understanding of the structure of your service mesh, display the topology of the mesh, and analyze the health of your mesh.

Use the following instructions to deploy the dashboard, along with , , and .

Install and wait for them to be deployed.

kubectl apply -f samples/addons
kubectl rollout status deployment/kiali -n istio-system

Ensure everything is running fine , Go to LENS software and check it.

Kiali Dashboard Access

istioctl dashboard kiali

View your Kiali Dashboard in your Browser.

In the left navigation menu, select Graph and in the Namespace drop down, select default.

Use ctrl+c to break out.

Prometheus Dashboard Access

Verify that the prometheus service is running in your cluster.

kubectl -n istio-system get svc prometheus

Open the Prometheus UI, execute the following command:

istioctl dashboard prometheus

Click Graph to the right of Prometheus in the header.

Execute a Prometheus query.

In the “Expression” input box at the top of the web page, enter the text:

istio_requests_total

Then, click the Execute button.

You can also see the query results graphically by selecting the Graph tab underneath the Execute button.

Other queries to try:

  • Total count of all requests to the productpage service:

    istio_requests_total{destination_service="productpage.default.svc.cluster.local"}
  • Total count of all requests to v3 of the reviews service:

    istio_requests_total{destination_service="reviews.default.svc.cluster.local", destination_version="v3"}

    This query returns the current total count of all requests to the v3 of the reviews service.

  • Rate of requests over the past 5 minutes to all instances of the productpage service:

    rate(istio_requests_total{destination_service=~"productpage.*", response_code="200"}[5m])

Use ctrl+c to break out.

Grafana Dashboard Access

Verify that the Grafana service is running in your cluster.

In Kubernetes environments, execute the following command:

kubectl -n istio-system get svc grafana

In Kubernetes environments, execute the following command:

istioctl dashboard grafana

Use ctrl+c to break out.

Jaeger Dashboard Access

Verify that the Jaeger service is running in your cluster.

In Kubernetes environments, execute the following command:

kubectl -n istio-system get svc jaeger-collector

In Kubernetes environments, execute the following command:

istioctl dashboard jaeger

Use ctrl+c to break out.

Troubleshooting

Ensure you have the following path setup from Previous Section

Step3: Add the istioctl client to your path (Linux or macOS):

export PATH=$PWD/bin:$PATH

Istio Cleanup / Uninstall

The Istio uninstall deletes the RBAC permissions and all resources hierarchically under the istio-system namespace. It is safe to ignore errors for non-existent resources because they may have been deleted hierarchically.

kubectl delete -f samples/addons
istioctl manifest generate --set profile=demo | kubectl delete --ignore-not-found=true -f -
istioctl tag remove default

The istio-system namespace is not removed by default. If no longer needed, use the following command to remove it:

kubectl delete namespace istio-system

The label to instruct Istio to automatically inject Envoy sidecar proxies is not removed by default. If no longer needed, use the following command to remove it:

kubectl label namespace default istio-injection-
Sample: Prometheus Query Result
Sample Prometheus Query Result - Graphical

Visit your web browser.

Visit your web browser.

several
Kiali
Prometheus
Grafana
Jaeger
Kiali and the other addons
http://localhost:3000
http://localhost:16686/jaeger/search