Visualizing Metrics with Grafana

    The Bookinfo sample application is used asthe example application throughout this task.

    • Deploy application.
    • Verify that the prometheus service is running in your cluster.

    In Kubernetes environments, execute the following command:

    • Verify that the Grafana service is running in your cluster.

    In Kubernetes environments, execute the following command:

    • Open the Istio Dashboard via the Grafana UI.

    In Kubernetes environments, execute the following command:

    Visit http://localhost:3000/dashboard/db/istio-mesh-dashboard in your web browser.

    The Istio Dashboard will look similar to:

    Istio Dashboard

    • Send traffic to the mesh.

    For the Bookinfo sample, visit in your webbrowser or issue the following command:

    $GATEWAY_URL is the value set in the Bookinfo example.

    Refresh the page a few times (or send the command a few times) to generate asmall amount of traffic.

    Look at the Istio Dashboard again. It should reflect the traffic that wasgenerated. It will look similar to:

    This gives the global view of the Mesh along with services and workloads in the mesh.You can get more details about services and workloads by navigating to their specific dashboards as explained below.

    From the Grafana dashboard’s left hand corner navigation menu, you can navigate to Istio Service Dashboard or visithttp://localhost:3000/dashboard/db/istio-service-dashboard in your web browser.

    The Istio Service Dashboard will look similar to:

    Istio Service Dashboard

    This gives details about metrics for the service and then client workloads (workloads that are calling this service)and service workloads (workloads that are providing this service) for that service.

    • Visualize Workload Dashboards.

    From the Grafana dashboard’s left hand corner navigation menu, you can navigate to Istio Workload Dashboard or visithttp://localhost:3000/dashboard/db/istio-workload-dashboard in your web browser.

    The Istio Workload Dashboard will look similar to:

    Istio Workload Dashboard

    This gives details about metrics for each workload and then inbound workloads (workloads that are sending request tothis workload) and outbound services (services to which this workload send requests) for that workload.

    The Grafana add-on is a preconfigured instance of Grafana. The base image() has beenmodified to start with both a Prometheus data source and the Istio Dashboardinstalled. The base install files for Istio, and Mixer in particular, ship witha default configuration of global (used for every service) metrics. The IstioDashboard is built to be used in conjunction with the default Istio metricsconfiguration and a Prometheus backend.

    The Istio Dashboard consists of three main sections:

    • Individual Services View. This section provides metrics about requests andresponses for each individual service within the mesh (HTTP/gRPC and TCP).This also provides metrics about client and service workloads for this service.

    • Individual Workloads View: This section provides metrics about requests andresponses for each individual workload within the mesh (HTTP/gRPC and TCP).This also provides metrics about inbound workloads and outbound services for this workload.

    For more on how to create, configure, and edit dashboards, please see the.

    • Remove any kubectl port-forward processes that may be running:

    Visualizing Your Mesh

    This task shows you how to visualize your services within an Istio mesh.

    Improving availability and reducing latency.

    Mixer Adapter Model

    Provides an overview of Mixer's plug-in architecture.

    This task shows you how to configure Istio to collect and customize logs.

    Collecting Metrics

    This task shows you how to configure Istio to collect and customize metrics.

    This task shows you how to configure Istio to collect metrics for TCP services.