We are going to learn how to deploy Springboot Microservices Docker containers into Azure Kubernetes Cluster(AKS) using Azure pipelines. I have created a sample Springboot App setup in GitHub. Click here to access code base in GitHub.
Watch the steps in YouTube Channel:
Pre-requisites:
1. AKS cluster needs to be up running. You can create AKS cluster using any of one of the below options:
Provides out-of-the-box monitoring capabilities for the Kubernetes container orchestration platform. It can monitor servers and databases as well.
Collects and stores metrics as time-series data, recording information with a timestamp
It is based on pull and collects metrics from targets by scraping metrics HTTP endpoints.
What is Grafana?
Grafana is an open source visualization and analytics software.
It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored.
Please Watch this steps in YouTube Channel:
Prometheus Architecture
Key components:
1. Prometheus server - Processes and stores metrics data
2. Alert Manager - Sends alerts to any systems/channels
3. Grafana - Visualize scraped data in UI
Installation Method
The are are many ways you can setup Prometheus and Grafana. You can install in following ways:
1. Create all configuration files of both Prometheus and Grafana and execute them in right order.
2. Prometheus Operator - to simplify and automate the configuration and management of the Prometheus monitoring stack running on a Kubernetes cluster
3. Helm chart (Recommended) - Using helm to install Prometheus Operator including Grafana
Why to use Helm?
Helm is a package manager for Kubernetes. Helm simplifies the installation of all components in one command. Install using Helm is recommended as you will not be missing any configuration steps and very efficient.
Prometheus and grafana helm chart moved to kube prometheus stack
Create Prometheus namespace
kubectl create namespace prometheus
Below is helm command to install kube-prometheus-stack. The helm repo kube-stack-prometheus (formerly prometheus-operator) comes with a grafana deployment embedded.