Flagger — Monitor Your Canary Deployments with Grafana

Flagger — Monitor Your Canary Deployments with Grafana

Keeping an eye on apps in Kubernetes and Istio. This is the third story in our series dedicated to Flagger, a progressive delivery tool that automates the release process for applications running on Kubernetes. It reduces the risk of introducing a new software version in production by gradually shifting traffic to the new version while measuring metrics and running conformance tests. I’ll show you how to install Grafana and monitor canary deployments without having to use Kubernetes’ dashboard or kubectl command line tool.

This is the third story in our series dedicated to Flagger, a progressive delivery tool that automates the release process for applications running on Kubernetes. It reduces the risk of introducing a new software version in production by gradually shifting traffic to the new version while measuring metrics and running conformance tests. I’ll show you how to install Grafana and monitor canary deployments without having to use Kubernetes’ dashboard or kubectl command line tool.

decorative spacer

Make sure you have a local Kubernetes cluster running with the service mesh Istio. If you don’t, read the first story: Flagger - Get Started with Istio and Kubernetes. You also need to be familiar with Flagger and MHS; see the second story: Flagger - Canary deployments on Kubernetes.

This is a hands-on guide you can follow step-by-step on MacOS. It will require some adjustments if you are using a Windows or Linux PC. If you are not familiar with Docker, Kubernetes, Helm or Istio, I strongly advise you to read their documentation before continuing reading, because I won’t explain them in detail.

Instrument Gauges

Photo by Kent Pilcher on Unsplash

Installing Grafana

Flagger provides a Grafana dashboard out of the box to monitor all the canary deployments inside your cluster.

Let’s install Grafana in the namespace istio-system with a single command:

helm upgrade -i flagger-grafana flagger/grafana \
--namespace=istio-system \
--set url=http://prometheus:9090 \
--set user=admin \
--set password=changeme

_Reference: [Flagger monitoring_](https://docs.flagger.app/usage/monitoring)

Flagger depends on Istio telemetry and Prometheus (I’ve assumed Istio is installed in the `istio-system_` namespace)._

grafana kubernetes istio flagger software-engineering

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

Software Developer vs Software Engineer — Differences: Bogus or Real?

In this article, see if there are any differences between software developers and software engineers. What you’re about to read mostly revolves around my personal thoughts, deductions, and offbeat imagination. If you have different sentiments, add them in the comment section, and let’s dispute! So, today’s topic…

Flagger - Get Started with Istio and Kubernetes

This article is the first of the series and also the only one where we won’t use Flagger yet… this article will walk through how you to run a Kubernetes cluster on your local environment and deploy an application which will be accessible via an Istio gateway.

Flagger - Canary Deployments on Kubernetes

This article is the second one of the series dedicated to Flagger. In a nutshell, Flagger is a progressive delivery tool that automates the release process for applications running on Kubernetes.

Science and Engineering in Software Architecture

Science and Engineering in Software Architecture - We are passing through tough times, “The moment everything changed” with COVID-19, quarentine, people trying adapt their day to day…