SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 1/31
Kubernetes Monitoring
Introduction
1 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 2/31
Kyohei Mizumoto(@kyohmizu)
C# Software Engineer
Interests
Docker/Kubernetes
Go
Security
whoami
2 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 3/31
Required
Kubernetesの概要程度の知識
Targets
Kubernetes Monitoring未経験者
3 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 4/31
Contents
1. Monitoring Overview
2. Datadog
3. Prometheus
4. Demo
4 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 5/31
Monitoring Overview
5 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 6/31
Monitoring
Problem Detection
ダッシュボード、アラート
Problem Resolution
根本原因の特定、トラブルシュート
Continuous Improvement
キャパシティ、コスト最適化
6 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 7/31
Observability
A measure of how well internal states of a system can be
inferred from knowledge of its external outputs
7 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 8/31
Landscape
8 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 9/31
Tools
Datadog
Prometheus
Managed Service
Azure Monitor for containers
Stackdriver(for GKE)
9 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 10/31
Tools
Datadog
Prometheus
Managed Service
Azure Monitor for containers
Stackdriver(for GKE)
10 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 11/31
Datadog
11 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 12/31
SaaS型の監視&解析ツール
課⾦制
様々なサービスのメトリクスをシー
ムレスに集約
Datadog
12 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 13/31
Dashboard
13 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 14/31
Metrics
ホストのCPU使⽤率、ディスク使⽤率
ノード上のコンテナのCPU使⽤率
Deployment のPod数、要求起動数
Jobの成功数、失敗数
etc...
14 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 15/31
Prometheus
15 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 16/31
CNCFがホストするOSSの監視ツー
ル
時系列でメトリクスを収集
Reliability
Prometheus
16 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 17/31
Architecture
pull metrics
HDD / SSD
Pushgateway
Short-lived jobs
Jobs / Exporters
StorageRetrieval PromQL
Prometheus Server
Node
Service Discovery
find
targets
Prometheus Server
Alertmanager
push alerts
Web UI
Grafana
API clients
PagerDuty Email
DNS
Kubernetes
Consul
...
Custom integration
notify
...
17 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 18/31
Architecture
Prometheus Server
メトリクスの収集(Pull型)、保存
Alert Manager
Exporter
要求に応じてメトリクスを送信
Push Gateway
メトリクスをPushしておく
18 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 19/31
Get Started
19 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 20/31
Use Helm
Helmを使⽤してマニフェストを作成
公式サイト︓https://helm.sh/
# Chartのダウンロード
$ helm fetch stable/prometheus --version 8.8.0
# Chartを元にマニフェストを作成
$ helm template --name sample-prometheus 
prometheus-8.8.0.tgz 
> sample-prometheus.yaml
20 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 21/31
Values
LBとして外部に公開する場合は、valuesファイルを⽤意
しておく
alertmanager:
service:
type: LoadBalancer
pushgateway:
service:
type: LoadBalancer
server:
service:
type: LoadBalancer
21 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 22/31
Deploy
サンプルをデプロイ
https://github.com/Kyohei-M/slide-k8s-monitoring/blob/master/sample-
prometheus.yaml
# Prometheusを起動
$ kubectl apply -f sample-prometheus.yaml
22 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 23/31
Demo
23 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 24/31
Prometheus Server
24 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 25/31
Prometheus Server
25 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 26/31
PromQL
Prometheus Query Language
# Example
# apiserverのhttpリクエスト合計
http_requests_total{job="apiserver"}
# 直近5分のhttpリクエストの増加率
rate(http_requests_total[5m])[30m:1m]
# 直近1時間での空きメモリ量の差
delta(node_memory_MemFree_bytes[1h])
26 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 27/31
Grafana
OSSのデータ可視化ツール
27 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 28/31
Grafana
helmでインストール
$ helm install stable/grafana
28 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 29/31
Books
29 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 30/31
Links
Monitoring and Observability
https://thenewstack.io/monitoring-and-observability-whats-the-
difference-and-why-does-it-matter/
Datadog
https://www.datadoghq.com/
Prometheus
https://prometheus.io/
Grafana
https://grafana.com/
30 / 31
2019/3/28 Kubernetes Monitoring Introduction
127.0.0.1:5500/index.html#2 31/31
Thank you!
31 / 31

Contenu connexe

Similaire à Kubernetes monitoring introduction

Monitoring Your AWS EKS Environment with Datadog
Monitoring Your AWS EKS Environment with DatadogMonitoring Your AWS EKS Environment with Datadog
Monitoring Your AWS EKS Environment with DatadogDevOps.com
 
給 RD 的 Kubernetes 初體驗 (EKS version)
給 RD 的 Kubernetes 初體驗 (EKS version)給 RD 的 Kubernetes 初體驗 (EKS version)
給 RD 的 Kubernetes 初體驗 (EKS version)William Yeh
 
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - PirosOpenbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - PirosOpenbar
 
Behind the Code 'September 2022 // by Exness
Behind the Code 'September 2022 // by ExnessBehind the Code 'September 2022 // by Exness
Behind the Code 'September 2022 // by ExnessMaxim Gaponov
 
Idea to Production - with Gitlab and Kubernetes
Idea to Production  - with Gitlab and KubernetesIdea to Production  - with Gitlab and Kubernetes
Idea to Production - with Gitlab and KubernetesSimon Dittlmann
 
Monitoring using Prometheus and Grafana
Monitoring using Prometheus and GrafanaMonitoring using Prometheus and Grafana
Monitoring using Prometheus and GrafanaArvind Kumar G.S
 
Cp r77 security_gateway_techadminguide_test
Cp r77 security_gateway_techadminguide_testCp r77 security_gateway_techadminguide_test
Cp r77 security_gateway_techadminguide_testPham Quoc Bao
 
TechEvent Eclipse Microprofile
TechEvent Eclipse MicroprofileTechEvent Eclipse Microprofile
TechEvent Eclipse MicroprofileTrivadis
 
K8sfor dev parisoss-summit-microsoft-5-decembre-short
K8sfor dev parisoss-summit-microsoft-5-decembre-shortK8sfor dev parisoss-summit-microsoft-5-decembre-short
K8sfor dev parisoss-summit-microsoft-5-decembre-shortGabriel Bechara
 
Bring-your-ML-Project-into-Production-v2.pdf
Bring-your-ML-Project-into-Production-v2.pdfBring-your-ML-Project-into-Production-v2.pdf
Bring-your-ML-Project-into-Production-v2.pdfLiang Yan
 
Kubernetes fingerprinting with Prometheus.pdf
Kubernetes fingerprinting with Prometheus.pdfKubernetes fingerprinting with Prometheus.pdf
Kubernetes fingerprinting with Prometheus.pdfKawimbaLofgrens
 
Jenkins2 - Coding Continuous Delivery Pipelines
Jenkins2 - Coding Continuous Delivery PipelinesJenkins2 - Coding Continuous Delivery Pipelines
Jenkins2 - Coding Continuous Delivery PipelinesBrent Laster
 
Helm Charts Security 101
Helm Charts Security 101Helm Charts Security 101
Helm Charts Security 101Deep Datta
 
Microservices development at scale
Microservices development at scaleMicroservices development at scale
Microservices development at scaleVishal Banthia
 
Spring boot microservice metrics monitoring
Spring boot   microservice metrics monitoringSpring boot   microservice metrics monitoring
Spring boot microservice metrics monitoringOracle Korea
 
Spring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics MonitoringSpring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics MonitoringDonghuKIM2
 
Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetesWilliam Stewart
 
給 RD 的 Kubernetes 初體驗
給 RD 的 Kubernetes 初體驗給 RD 的 Kubernetes 初體驗
給 RD 的 Kubernetes 初體驗William Yeh
 

Similaire à Kubernetes monitoring introduction (20)

Monitoring Your AWS EKS Environment with Datadog
Monitoring Your AWS EKS Environment with DatadogMonitoring Your AWS EKS Environment with Datadog
Monitoring Your AWS EKS Environment with Datadog
 
給 RD 的 Kubernetes 初體驗 (EKS version)
給 RD 的 Kubernetes 初體驗 (EKS version)給 RD 的 Kubernetes 初體驗 (EKS version)
給 RD 的 Kubernetes 初體驗 (EKS version)
 
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - PirosOpenbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
 
Behind the Code 'September 2022 // by Exness
Behind the Code 'September 2022 // by ExnessBehind the Code 'September 2022 // by Exness
Behind the Code 'September 2022 // by Exness
 
Idea to Production - with Gitlab and Kubernetes
Idea to Production  - with Gitlab and KubernetesIdea to Production  - with Gitlab and Kubernetes
Idea to Production - with Gitlab and Kubernetes
 
Monitoring using Prometheus and Grafana
Monitoring using Prometheus and GrafanaMonitoring using Prometheus and Grafana
Monitoring using Prometheus and Grafana
 
Cp r77 security_gateway_techadminguide_test
Cp r77 security_gateway_techadminguide_testCp r77 security_gateway_techadminguide_test
Cp r77 security_gateway_techadminguide_test
 
TechEvent Eclipse Microprofile
TechEvent Eclipse MicroprofileTechEvent Eclipse Microprofile
TechEvent Eclipse Microprofile
 
K8sfor dev parisoss-summit-microsoft-5-decembre-short
K8sfor dev parisoss-summit-microsoft-5-decembre-shortK8sfor dev parisoss-summit-microsoft-5-decembre-short
K8sfor dev parisoss-summit-microsoft-5-decembre-short
 
Bring-your-ML-Project-into-Production-v2.pdf
Bring-your-ML-Project-into-Production-v2.pdfBring-your-ML-Project-into-Production-v2.pdf
Bring-your-ML-Project-into-Production-v2.pdf
 
Kubernetes fingerprinting with Prometheus.pdf
Kubernetes fingerprinting with Prometheus.pdfKubernetes fingerprinting with Prometheus.pdf
Kubernetes fingerprinting with Prometheus.pdf
 
Keymetrics pm2
Keymetrics pm2Keymetrics pm2
Keymetrics pm2
 
Jenkins2 - Coding Continuous Delivery Pipelines
Jenkins2 - Coding Continuous Delivery PipelinesJenkins2 - Coding Continuous Delivery Pipelines
Jenkins2 - Coding Continuous Delivery Pipelines
 
Helm Charts Security 101
Helm Charts Security 101Helm Charts Security 101
Helm Charts Security 101
 
Microservices development at scale
Microservices development at scaleMicroservices development at scale
Microservices development at scale
 
Knative and Kubernetes - bringing serverless to more developers
Knative and Kubernetes - bringing serverless to more developersKnative and Kubernetes - bringing serverless to more developers
Knative and Kubernetes - bringing serverless to more developers
 
Spring boot microservice metrics monitoring
Spring boot   microservice metrics monitoringSpring boot   microservice metrics monitoring
Spring boot microservice metrics monitoring
 
Spring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics MonitoringSpring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics Monitoring
 
Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetes
 
給 RD 的 Kubernetes 初體驗
給 RD 的 Kubernetes 初體驗給 RD 的 Kubernetes 初體驗
給 RD 的 Kubernetes 初體驗
 

Plus de Kyohei Mizumoto

Introduction to telepresence
Introduction to telepresenceIntroduction to telepresence
Introduction to telepresenceKyohei Mizumoto
 
Windowsコンテナ入門
Windowsコンテナ入門Windowsコンテナ入門
Windowsコンテナ入門Kyohei Mizumoto
 
Introduction of cloud native CI/CD on kubernetes
Introduction of cloud native CI/CD on kubernetesIntroduction of cloud native CI/CD on kubernetes
Introduction of cloud native CI/CD on kubernetesKyohei Mizumoto
 
Deploy Mattermost on AKS
Deploy Mattermost on AKSDeploy Mattermost on AKS
Deploy Mattermost on AKSKyohei Mizumoto
 
Running k3s on raspberry pi
Running k3s on raspberry piRunning k3s on raspberry pi
Running k3s on raspberry piKyohei Mizumoto
 
Kubernetes logging introduction
Kubernetes logging introductionKubernetes logging introduction
Kubernetes logging introductionKyohei Mizumoto
 
Istio service mesh introduction
Istio service mesh introductionIstio service mesh introduction
Istio service mesh introductionKyohei Mizumoto
 
Multi cluster management with rancher
Multi cluster management with rancherMulti cluster management with rancher
Multi cluster management with rancherKyohei Mizumoto
 

Plus de Kyohei Mizumoto (9)

Introduction to telepresence
Introduction to telepresenceIntroduction to telepresence
Introduction to telepresence
 
Windowsコンテナ入門
Windowsコンテナ入門Windowsコンテナ入門
Windowsコンテナ入門
 
Introduction of cloud native CI/CD on kubernetes
Introduction of cloud native CI/CD on kubernetesIntroduction of cloud native CI/CD on kubernetes
Introduction of cloud native CI/CD on kubernetes
 
Deploy Mattermost on AKS
Deploy Mattermost on AKSDeploy Mattermost on AKS
Deploy Mattermost on AKS
 
Running k3s on raspberry pi
Running k3s on raspberry piRunning k3s on raspberry pi
Running k3s on raspberry pi
 
Kubernetes logging introduction
Kubernetes logging introductionKubernetes logging introduction
Kubernetes logging introduction
 
Git入門
Git入門Git入門
Git入門
 
Istio service mesh introduction
Istio service mesh introductionIstio service mesh introduction
Istio service mesh introduction
 
Multi cluster management with rancher
Multi cluster management with rancherMulti cluster management with rancher
Multi cluster management with rancher
 

Dernier

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Dernier (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Kubernetes monitoring introduction

  • 1. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 1/31 Kubernetes Monitoring Introduction 1 / 31
  • 2. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 2/31 Kyohei Mizumoto(@kyohmizu) C# Software Engineer Interests Docker/Kubernetes Go Security whoami 2 / 31
  • 3. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 3/31 Required Kubernetesの概要程度の知識 Targets Kubernetes Monitoring未経験者 3 / 31
  • 4. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 4/31 Contents 1. Monitoring Overview 2. Datadog 3. Prometheus 4. Demo 4 / 31
  • 5. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 5/31 Monitoring Overview 5 / 31
  • 6. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 6/31 Monitoring Problem Detection ダッシュボード、アラート Problem Resolution 根本原因の特定、トラブルシュート Continuous Improvement キャパシティ、コスト最適化 6 / 31
  • 7. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 7/31 Observability A measure of how well internal states of a system can be inferred from knowledge of its external outputs 7 / 31
  • 8. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 8/31 Landscape 8 / 31
  • 9. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 9/31 Tools Datadog Prometheus Managed Service Azure Monitor for containers Stackdriver(for GKE) 9 / 31
  • 10. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 10/31 Tools Datadog Prometheus Managed Service Azure Monitor for containers Stackdriver(for GKE) 10 / 31
  • 11. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 11/31 Datadog 11 / 31
  • 12. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 12/31 SaaS型の監視&解析ツール 課⾦制 様々なサービスのメトリクスをシー ムレスに集約 Datadog 12 / 31
  • 13. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 13/31 Dashboard 13 / 31
  • 14. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 14/31 Metrics ホストのCPU使⽤率、ディスク使⽤率 ノード上のコンテナのCPU使⽤率 Deployment のPod数、要求起動数 Jobの成功数、失敗数 etc... 14 / 31
  • 15. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 15/31 Prometheus 15 / 31
  • 16. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 16/31 CNCFがホストするOSSの監視ツー ル 時系列でメトリクスを収集 Reliability Prometheus 16 / 31
  • 17. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 17/31 Architecture pull metrics HDD / SSD Pushgateway Short-lived jobs Jobs / Exporters StorageRetrieval PromQL Prometheus Server Node Service Discovery find targets Prometheus Server Alertmanager push alerts Web UI Grafana API clients PagerDuty Email DNS Kubernetes Consul ... Custom integration notify ... 17 / 31
  • 18. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 18/31 Architecture Prometheus Server メトリクスの収集(Pull型)、保存 Alert Manager Exporter 要求に応じてメトリクスを送信 Push Gateway メトリクスをPushしておく 18 / 31
  • 19. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 19/31 Get Started 19 / 31
  • 20. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 20/31 Use Helm Helmを使⽤してマニフェストを作成 公式サイト︓https://helm.sh/ # Chartのダウンロード $ helm fetch stable/prometheus --version 8.8.0 # Chartを元にマニフェストを作成 $ helm template --name sample-prometheus prometheus-8.8.0.tgz > sample-prometheus.yaml 20 / 31
  • 21. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 21/31 Values LBとして外部に公開する場合は、valuesファイルを⽤意 しておく alertmanager: service: type: LoadBalancer pushgateway: service: type: LoadBalancer server: service: type: LoadBalancer 21 / 31
  • 22. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 22/31 Deploy サンプルをデプロイ https://github.com/Kyohei-M/slide-k8s-monitoring/blob/master/sample- prometheus.yaml # Prometheusを起動 $ kubectl apply -f sample-prometheus.yaml 22 / 31
  • 23. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 23/31 Demo 23 / 31
  • 24. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 24/31 Prometheus Server 24 / 31
  • 25. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 25/31 Prometheus Server 25 / 31
  • 26. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 26/31 PromQL Prometheus Query Language # Example # apiserverのhttpリクエスト合計 http_requests_total{job="apiserver"} # 直近5分のhttpリクエストの増加率 rate(http_requests_total[5m])[30m:1m] # 直近1時間での空きメモリ量の差 delta(node_memory_MemFree_bytes[1h]) 26 / 31
  • 27. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 27/31 Grafana OSSのデータ可視化ツール 27 / 31
  • 28. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 28/31 Grafana helmでインストール $ helm install stable/grafana 28 / 31
  • 29. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 29/31 Books 29 / 31
  • 30. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 30/31 Links Monitoring and Observability https://thenewstack.io/monitoring-and-observability-whats-the- difference-and-why-does-it-matter/ Datadog https://www.datadoghq.com/ Prometheus https://prometheus.io/ Grafana https://grafana.com/ 30 / 31
  • 31. 2019/3/28 Kubernetes Monitoring Introduction 127.0.0.1:5500/index.html#2 31/31 Thank you! 31 / 31