SlideShare a Scribd company logo
1
Elastic Meetup Amsterdam | April 2023
Miguel Luna | Product @Elastic
Christos Markou | Engineering @Elastic
Deep dive into Kubernetes monitoring
with Elastic Observability
About us…
Christos Markou
Senior Software Engineer
Miguel Luna
Principal Product Manager
Elastic Cloud Native Observability
What does Kubernetes have to do with hipsters?
A story about beer Kubernetes
Goal: Get to Union Square
⬅️ Queens midtown
tunnel
⬇️ Down 5th Avenue
🛑 Union square hotel
3 STEPS!
cab$ take queens-midtown-tunnel
drive down 5th-avenue
stop union square
Goal: Get to Union Square
TL;DL:
We ❤️ the resilience that
Kubernetes automation brings to
our work.
Problem Solved…?
Yes! Kubernetes brings challenges (like observing it)
● Dynamic and ephemeral environment
● A new meaning for scale
● Distributed nature of Kubernetes
● Data sprawl across different tools
● Interpreting Kubernetes signals requires expertise
● The rise of managed Kubernetes
Observing
with
Store, Search, &
Analyze
Visualize &
Manage
Ingest
Elastic Stack
Kibana
Elasticsearch
Beats/Elastic-Agent Logstash
Elastic Stack
Getting your K8s data into Elastic
• similar functionality to Beats for log collection and host monitoring
• Elastic Agent has some distinct advantages over Beats
• Easier to deploy and manage
• Easier to configure
• Central management
Elastic Agent
Ingest configuration
Type of integration
Shipper to use
Metrics endpoint
Integration specific settings
Elastic Integrations
https://docs.elastic.co/en/integrations/redis
https://github.com/elastic/integrations
Centrally manage configurations
Configuring Elastic Agent (managed by user)
• Standalone Elastic Agents are manually configured and managed
locally on the systems where they are installed.
• They are useful when you are not interested in centrally managing
agents in Fleet, either due to your company’s security requirements,
or because you prefer to use another configuration management
system.
From UI to GitOps
Elastic Agent on Kubernetes
Filebeat
Daemonset
Filebeat
Daemonset
Filebeat
Daemonset
Node_1 Node_2 Node_3
Elastic Agent
Pod
runs as Deamonset (one Pod per node) on a k8s cluster
Elastic Agent
Pod
Elastic Agent
Pod
Inputs
• kubernetes-cluster-metrics (using leaderelection)
• kubernetes-node-metrics (node’s kubelet API)
• system/metrics (from underlying node using system package)
• container-logs (using k8s dynamic provider)
• system-logs (from underlying node using system package)
• uptime monitoring
• redis/metrics (using k8s dynamic provider + hints)
• APM data
Dynamic workload discovery
• Conditions based autodiscover
• Hints annotations based autodiscover
Conditions based autodiscover
condition: ${kubernetes.labels.app} == ‘redis’
Hints annotations based autodiscover
APM instrumentation
● An implementation of k8s admission control webhook, that enables
automatic attachment of the Elastic APM agent to application pods.
● The registered MutatingAdmissionWebhook intercepts requests to the
Kubernetes API server and executes the mutating admission control
webhook prior to persistence of the object, but after the request is
authenticated and authorized.
This allows the mutation of the originally submitted request.
Your K8s data is in Elastic, now what?
Data collection into one single place, following common schema will
allows us
to convert these data into actionable observability rules:
• Latency
• Resource saturation
• Common errors
Alerting (through watchers)
A Watcher is an Elasticsearch feature that you can use to create actions
based on conditions, which are periodically evaluated using queries on your
data. Watches are helpful for analyzing mission-critical and business-critical
streaming data.
Alerting (through watchers)
https://github.com/elastic/integrations/blob/main/packages/kubernetes/docs/pod-terminated-oomkilled-alert.md
Alerting (through ML)
Demo 🤞
LET’S KEEP SHAPING ELASTIC
TOGETHER!
WE WOULD TO KEEP HEARING FROM YOU
https://discuss.elastic.co/c/beats
https://github.com/elastic/beats
https://discuss.elastic.co/c/elastic-stack/elastic-
agent
https://github.com/elastic/elastic-agent
https://github.com/elastic/integrations
Q&A
Elastic’s contribution of
Elastic Common Schema (ECS) to
OpenTelemetry (OTel)
April 18, 2023
ECS and OTel SemConv* Convergence
ECS
Security Events
Logs Metrics Traces
Resources
OTel SemConv*
Logs Metrics Traces
A schema that includes both Observability and Security
New OTel
common schema
Logs Metrics Traces
Security Events
Resources
Resources
ECS main
contributions
* OTel SemConv = OpenTelemetry Semantic Convention (OTel’s schema definition)
How a common schema helps: current state
Reduced visibility and harder root cause analysis
Where are you operationally?
Where are you trending?
Are you meeting business objectives?
Backend
OTel
Agent/S
DK
Elastic
Agents
Infra
Frontend
Dev process
src:10.42.42.42
OR client_ip:10.42.42.42
OR
apache2.access.remote_ip:
10.42.42.42
OR
context.user.ip:10.42.42.42
OR src_ip:10.42.42.42
Example: IP definition of a specific user end point
w/o
COMMON
SCHEMA
How a common schema helps: future state
Backend
OTel
Agent/S
DK
Elastic
Agents
Infra
Frontend
Dev process
Example: IP definition of a specific user end point
Where are you operationally?
Where are you trending?
Are you meeting business objectives?
src:10.42.42.42
OR client_ip:10.42.42.42
OR
apache2.access.remote_ip:
10.42.42.42
OR
context.user.ip:10.42.42.42
OR src_ip:10.42.42.42
Where are you operationally?
Where are you trending?
Are you meeting business objectives?
w/
COMMON
SCHEMA
source.ip:10.42.42.42
Simplified visibility and root cause analysis
Value of the new common schema
Better visibility and
root cause analysis
for operations and
security teams
Improved
collaboration
between
observability and
security
OTel is the
open standard for
observability and
security telemetry
Elastic’s native OpenTelemetry support
OTel
Collector
App
Code
Microservices
OTLP
Agent/SDK
Elastic Observability
Kibana
APM Server
Elasticsearch
OTLP
OR
Agent/SDK
App Code
Microservices
Elastic APM agents and OTel
coexist, delivering full APM
visibility and functionality enabling
customers migrate to an OTEL
NO Elastic based OTel Agent
needed
Learn more about this

More Related Content

Similar to Deep dive into Kubernetes monitoring with Elastic Observability.pptx

Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
Ashnikbiz
 
Monitoring kubernetes across data center and cloud
Monitoring kubernetes across data center and cloudMonitoring kubernetes across data center and cloud
Monitoring kubernetes across data center and cloud
Datadog
 
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
Ashnikbiz
 
Cloud-Native Operations with Kubernetes and CI/CD
Cloud-Native Operations with Kubernetes and CI/CDCloud-Native Operations with Kubernetes and CI/CD
Cloud-Native Operations with Kubernetes and CI/CD
VMware Tanzu
 
Streamlining Elastic integrations development .pptx
Streamlining Elastic integrations development .pptxStreamlining Elastic integrations development .pptx
Streamlining Elastic integrations development .pptx
Chris Markou
 
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
NETWAYS
 
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
NETWAYS
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Matt Ray
 
Bandwidth: Use Cases for Elastic Cloud on Kubernetes
Bandwidth: Use Cases for Elastic Cloud on Kubernetes Bandwidth: Use Cases for Elastic Cloud on Kubernetes
Bandwidth: Use Cases for Elastic Cloud on Kubernetes
Elasticsearch
 
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKSMigrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
Weaveworks
 
Implementing Observability for Kubernetes.pdf
Implementing Observability for Kubernetes.pdfImplementing Observability for Kubernetes.pdf
Implementing Observability for Kubernetes.pdf
Jose Manuel Ortega Candel
 
Implementing AKS on the Enterprise
Implementing AKS on the EnterpriseImplementing AKS on the Enterprise
Implementing AKS on the Enterprise
Jorge Arteiro
 
Combining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observabilityCombining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observability
Elasticsearch
 
AKS: k8s e azure
AKS: k8s e azureAKS: k8s e azure
AKS: k8s e azure
Alessandro Melchiori
 
Combinación de logs, métricas y seguimiento para una visibilidad centralizada
Combinación de logs, métricas y seguimiento para una visibilidad centralizadaCombinación de logs, métricas y seguimiento para una visibilidad centralizada
Combinación de logs, métricas y seguimiento para una visibilidad centralizada
Elasticsearch
 
Logging, Metrics, and APM: The Operations Trifecta
Logging, Metrics, and APM: The Operations TrifectaLogging, Metrics, and APM: The Operations Trifecta
Logging, Metrics, and APM: The Operations Trifecta
Elasticsearch
 
Full stack visibility with elastic, KubeCon 2017
Full stack visibility with elastic, KubeCon 2017Full stack visibility with elastic, KubeCon 2017
Full stack visibility with elastic, KubeCon 2017
Carlos Pérez-Aradros
 
A GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKSA GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKS
Weaveworks
 
Elasticsearch on Azure
Elasticsearch on AzureElasticsearch on Azure
Elasticsearch on Azure
Elasticsearch
 
NextGenML
NextGenML NextGenML

Similar to Deep dive into Kubernetes monitoring with Elastic Observability.pptx (20)

Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
Webinar: How to monitor Container, Kubernetes, and OpenShift environment usin...
 
Monitoring kubernetes across data center and cloud
Monitoring kubernetes across data center and cloudMonitoring kubernetes across data center and cloud
Monitoring kubernetes across data center and cloud
 
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
 
Cloud-Native Operations with Kubernetes and CI/CD
Cloud-Native Operations with Kubernetes and CI/CDCloud-Native Operations with Kubernetes and CI/CD
Cloud-Native Operations with Kubernetes and CI/CD
 
Streamlining Elastic integrations development .pptx
Streamlining Elastic integrations development .pptxStreamlining Elastic integrations development .pptx
Streamlining Elastic integrations development .pptx
 
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
OSDC 2017: Automating Kubernetes Cluster Operations with Operators by Timo De...
 
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
OSDC 2017 - Timo Derstappen - Automating kubernetes cluster operations with o...
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Bandwidth: Use Cases for Elastic Cloud on Kubernetes
Bandwidth: Use Cases for Elastic Cloud on Kubernetes Bandwidth: Use Cases for Elastic Cloud on Kubernetes
Bandwidth: Use Cases for Elastic Cloud on Kubernetes
 
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKSMigrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
Migrating from Self-Managed Kubernetes on EC2 to a GitOps Enabled EKS
 
Implementing Observability for Kubernetes.pdf
Implementing Observability for Kubernetes.pdfImplementing Observability for Kubernetes.pdf
Implementing Observability for Kubernetes.pdf
 
Implementing AKS on the Enterprise
Implementing AKS on the EnterpriseImplementing AKS on the Enterprise
Implementing AKS on the Enterprise
 
Combining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observabilityCombining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observability
 
AKS: k8s e azure
AKS: k8s e azureAKS: k8s e azure
AKS: k8s e azure
 
Combinación de logs, métricas y seguimiento para una visibilidad centralizada
Combinación de logs, métricas y seguimiento para una visibilidad centralizadaCombinación de logs, métricas y seguimiento para una visibilidad centralizada
Combinación de logs, métricas y seguimiento para una visibilidad centralizada
 
Logging, Metrics, and APM: The Operations Trifecta
Logging, Metrics, and APM: The Operations TrifectaLogging, Metrics, and APM: The Operations Trifecta
Logging, Metrics, and APM: The Operations Trifecta
 
Full stack visibility with elastic, KubeCon 2017
Full stack visibility with elastic, KubeCon 2017Full stack visibility with elastic, KubeCon 2017
Full stack visibility with elastic, KubeCon 2017
 
A GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKSA GitOps model for High Availability and Disaster Recovery on EKS
A GitOps model for High Availability and Disaster Recovery on EKS
 
Elasticsearch on Azure
Elasticsearch on AzureElasticsearch on Azure
Elasticsearch on Azure
 
NextGenML
NextGenML NextGenML
NextGenML
 

Recently uploaded

Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 

Recently uploaded (20)

Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 

Deep dive into Kubernetes monitoring with Elastic Observability.pptx

  • 1. 1 Elastic Meetup Amsterdam | April 2023 Miguel Luna | Product @Elastic Christos Markou | Engineering @Elastic Deep dive into Kubernetes monitoring with Elastic Observability
  • 2. About us… Christos Markou Senior Software Engineer Miguel Luna Principal Product Manager Elastic Cloud Native Observability
  • 3. What does Kubernetes have to do with hipsters?
  • 4. A story about beer Kubernetes
  • 5. Goal: Get to Union Square
  • 6. ⬅️ Queens midtown tunnel ⬇️ Down 5th Avenue 🛑 Union square hotel 3 STEPS!
  • 7. cab$ take queens-midtown-tunnel drive down 5th-avenue stop union square
  • 8.
  • 9.
  • 10. Goal: Get to Union Square
  • 11.
  • 12. TL;DL: We ❤️ the resilience that Kubernetes automation brings to our work.
  • 14. Yes! Kubernetes brings challenges (like observing it) ● Dynamic and ephemeral environment ● A new meaning for scale ● Distributed nature of Kubernetes ● Data sprawl across different tools ● Interpreting Kubernetes signals requires expertise ● The rise of managed Kubernetes
  • 16. Store, Search, & Analyze Visualize & Manage Ingest Elastic Stack Kibana Elasticsearch Beats/Elastic-Agent Logstash Elastic Stack
  • 17. Getting your K8s data into Elastic • similar functionality to Beats for log collection and host monitoring • Elastic Agent has some distinct advantages over Beats • Easier to deploy and manage • Easier to configure • Central management Elastic Agent
  • 18. Ingest configuration Type of integration Shipper to use Metrics endpoint Integration specific settings
  • 21. Configuring Elastic Agent (managed by user) • Standalone Elastic Agents are manually configured and managed locally on the systems where they are installed. • They are useful when you are not interested in centrally managing agents in Fleet, either due to your company’s security requirements, or because you prefer to use another configuration management system.
  • 22. From UI to GitOps
  • 23. Elastic Agent on Kubernetes Filebeat Daemonset Filebeat Daemonset Filebeat Daemonset Node_1 Node_2 Node_3 Elastic Agent Pod runs as Deamonset (one Pod per node) on a k8s cluster Elastic Agent Pod Elastic Agent Pod
  • 24. Inputs • kubernetes-cluster-metrics (using leaderelection) • kubernetes-node-metrics (node’s kubelet API) • system/metrics (from underlying node using system package) • container-logs (using k8s dynamic provider) • system-logs (from underlying node using system package) • uptime monitoring • redis/metrics (using k8s dynamic provider + hints) • APM data
  • 25. Dynamic workload discovery • Conditions based autodiscover • Hints annotations based autodiscover
  • 26. Conditions based autodiscover condition: ${kubernetes.labels.app} == ‘redis’
  • 27. Hints annotations based autodiscover
  • 28. APM instrumentation ● An implementation of k8s admission control webhook, that enables automatic attachment of the Elastic APM agent to application pods. ● The registered MutatingAdmissionWebhook intercepts requests to the Kubernetes API server and executes the mutating admission control webhook prior to persistence of the object, but after the request is authenticated and authorized. This allows the mutation of the originally submitted request.
  • 29. Your K8s data is in Elastic, now what? Data collection into one single place, following common schema will allows us to convert these data into actionable observability rules: • Latency • Resource saturation • Common errors
  • 30. Alerting (through watchers) A Watcher is an Elasticsearch feature that you can use to create actions based on conditions, which are periodically evaluated using queries on your data. Watches are helpful for analyzing mission-critical and business-critical streaming data.
  • 34. LET’S KEEP SHAPING ELASTIC TOGETHER!
  • 35. WE WOULD TO KEEP HEARING FROM YOU https://discuss.elastic.co/c/beats https://github.com/elastic/beats https://discuss.elastic.co/c/elastic-stack/elastic- agent https://github.com/elastic/elastic-agent https://github.com/elastic/integrations
  • 36. Q&A
  • 37. Elastic’s contribution of Elastic Common Schema (ECS) to OpenTelemetry (OTel) April 18, 2023
  • 38. ECS and OTel SemConv* Convergence ECS Security Events Logs Metrics Traces Resources OTel SemConv* Logs Metrics Traces A schema that includes both Observability and Security New OTel common schema Logs Metrics Traces Security Events Resources Resources ECS main contributions * OTel SemConv = OpenTelemetry Semantic Convention (OTel’s schema definition)
  • 39. How a common schema helps: current state Reduced visibility and harder root cause analysis Where are you operationally? Where are you trending? Are you meeting business objectives? Backend OTel Agent/S DK Elastic Agents Infra Frontend Dev process src:10.42.42.42 OR client_ip:10.42.42.42 OR apache2.access.remote_ip: 10.42.42.42 OR context.user.ip:10.42.42.42 OR src_ip:10.42.42.42 Example: IP definition of a specific user end point w/o COMMON SCHEMA
  • 40. How a common schema helps: future state Backend OTel Agent/S DK Elastic Agents Infra Frontend Dev process Example: IP definition of a specific user end point Where are you operationally? Where are you trending? Are you meeting business objectives? src:10.42.42.42 OR client_ip:10.42.42.42 OR apache2.access.remote_ip: 10.42.42.42 OR context.user.ip:10.42.42.42 OR src_ip:10.42.42.42 Where are you operationally? Where are you trending? Are you meeting business objectives? w/ COMMON SCHEMA source.ip:10.42.42.42 Simplified visibility and root cause analysis
  • 41. Value of the new common schema Better visibility and root cause analysis for operations and security teams Improved collaboration between observability and security OTel is the open standard for observability and security telemetry
  • 42. Elastic’s native OpenTelemetry support OTel Collector App Code Microservices OTLP Agent/SDK Elastic Observability Kibana APM Server Elasticsearch OTLP OR Agent/SDK App Code Microservices Elastic APM agents and OTel coexist, delivering full APM visibility and functionality enabling customers migrate to an OTEL NO Elastic based OTel Agent needed