Slide 1

Slide 1 text

Nilesh Gule @nileshgule | www.HandsOnArchitect.com Monitoring Kubernetes With Prometheus and Grafana

Slide 2

Slide 2 text

$whoami { “name” : “Nilesh Gule”, “website” : “https://www.HandsOnArchitect.com", “github” : “https://GitHub.com/NileshGule" “twitter” : “@nileshgule”, “linkedin” : “https://www.linkedin.com/in/nileshgule”, “likes” : “Technical Evangelism, Cricket”, “co-organizer” : “Azure Singapore UG” }

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

@nileshgule Kubernetes Monitoring Prometheus and Grafana Need for Prometheus & Grafana Prometehus Architecture Spring Boot integration demo .Net Core integration demo Alert manager demo Agenda

Slide 5

Slide 5 text

Pre-requisites • Self contained application with all its dependencies Docker • Orchestrates containers • Self healing • Service discovery • Scaling Kubernetes • Dockerhub / private container registry • Repository for storing container images Container Registry • Managed Kubernetes service on Azure • Native integration with other Azure services like Azure Active Directory (AAD), Azure Container registry (ACR), Azure Container Instances (ACI), Azure Monitor etc. Azure Kubernetes Service (AKS)

Slide 6

Slide 6 text

@nileshgule Rise of Cloud Native Adoption Building Cloud Native Software on Top of Kubernetes (slideshare.net)

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

@nileshgule CNCF cloud trail https://github.com/cncf/trailmap

Slide 9

Slide 9 text

@nileshgule Prometheus Architecture

Slide 10

Slide 10 text

@nileshgule Prometheus Metric Types

Slide 11

Slide 11 text

@nileshgule Install Prometheus using Kube-prometheues-stack https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack  Installs collection of Kubernetes manifests, Grafana dashboards and Prometheus rules  Documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus operator  Prometheus operator : simplify & automate the configuration of Prometheus based monitoring stack for Kubernetes clusters  Kubernetes custom resources  Simplified deployment configuration (versions, persistence, retention policies, replicas)  Prometheus target configurations

Slide 12

Slide 12 text

@nileshgule Conference App Demo setup https://github.com/NileshGule/spring-boot-conference-app/tree/mssql-server

Slide 13

Slide 13 text

@nileshgule TechTalks Demo setup 1000 (configurable) messages Batch of 50 (configurable) messages https://github.com/NileshGule/pd-tech-fest-2019

Slide 14

Slide 14 text

Summary • Modern day cloud native applications need new ways of monitoring • Prometheus provides easy to use metrics for platforms, applications • Use service monitor to scrape metrics for Kubernetes service • Use pod monitor to scrape metrics for Kubernetes pods • Grafana provides visualization capabilities to build intuitive dashboards • Alert Manager provides alerting capabilities based on Prometheus queries / expressions

Slide 15

Slide 15 text

Prometheus.io Grafana.com Kube Prometheus Stack Prometheus operator Houssem Dellai – Prometheus & Grafana for monitoring Kubernetes Tech world with Nana Prometheus debugging

Slide 16

Slide 16 text

https://github.com/NileshGule/pd-tech-fest-2019 https://github.com/NileshGule/spring-boot- conference-app/tree/mssql-server

Slide 17

Slide 17 text

Thank you very much Code with Passion and Strive for Excellence https://www.slideshare.net/nileshgule/presentations https://speakerdeck.com/nileshgule/

Slide 18

Slide 18 text

Nilesh Gule ARCHITECT | MICROSOFT MVP “Code with Passion and Strive for Excellence” nileshgule @nileshgule Nilesh Gule NileshGule www.handsonarchitect.com

Slide 19

Slide 19 text

Q&A