SlideShare a Scribd company logo
ELASTICSEARCH MONITORING
IN OPENSHIFT
OpenShift Cluster Logging Component
Lukáš Vlček
SW Engineer, Red Hat
DevConf 2019, Brno
DevConf 2019, Brno
2
AGENDA
We have about 20 minutes
● OpenShift Cluster Logging
● Challenges of running Elasticsearch in OpenShift
● Prometheus & Grafana
● Elasticsearch Operator
● Questions
OPENSHIFT CLUSTER LOGGING
DevConf 2019, Brno
4
OPENSHIFT CLUSTER LOGGING
A container log message flow on a node
Kubernetes
master
cri-o Collector
Files
on disk
send off the node
kubelet
kubectl logs <pod>
/var/log/containers/*.log
Container
Container
Container
stdout
stderr
DevConf 2019, Brno
5
OPENSHIFT CLUSTER LOGGING
Per Project (Namespace) isolation
Pod
Container
Pod
Container Container
Namespace
Pod
Container Container
Namespace
DevConf 2019, Brno
6
OPENSHIFT CLUSTER LOGGING
Openshift-logging Project
Openshift-logging
Namespace
Elasticsearch
Node
Elasticsearch
Node
Elasticsearch
Node
Collector
Collector
Collector
ES service
Kibana
Curator
ELASTICSEARCH IN OPENSHIFT
DevConf 2019, Brno
8
THE DATA MODEL
OPERATIONAL &
PERFORMANCE TUNING SKILLED PEOPLE
WHAT ARE THE CHALLENGES
Scaling Elasticsearch with limited resources is hard
DevConf 2019, Brno
DATA MODEL
DevConf 2019, Brno
10
How we store logs into individual indices.
● One index per namespace
● One index per day
CH#1 - THE DATA MODEL
How the data is physically stored is important
Pod
Container
Pod
Container Container
Namespace
Pod
Container Container
Namespace
Today
Today
Today - 1
Today - 1
Today - 2
Today - 2
Today - 3
Today - 3
DevConf 2019, Brno
11
Scaling issues:
● Number of indices/shards
● Number of index fields
Reduce number of indices/shards:
● Rollover API
● Commercial (requires license)
● Spread the load to more clusters
CH#1 - THE DATA MODEL
How the data is physically stored is important
Way too
many
shards!
Index
mapping
explosion
DevConf 2019, Brno
PERFORMANCE &
OPERATIONAL
TUNING
DevConf 2019, Brno
13
Physical and functional layout:
● Fast local storage
● Dedicated node roles
● Hot-Warm
Monitoring and Alerting:
● Commercial (requires license)
● DIY/3rd party solutions
CH#2 - OPS & PERF TUNING
Topology of Elasticsearch cluster and underlying HW is important
DevConf 2019, Brno
SKILLED PEOPLE
DevConf 2019, Brno
15
There is always someone who takes care of
your cluster and typically performs the
following tasks:
● Maintenance
● Upgrades
● Troubleshooting
CH#3 - SKILLED PEOPLE
Someone gets woke up when it happens
PROMETHEUS
DevConf 2019, Brno
17
100% open-source and community driven
● Prometheus is systems monitoring
and alerting toolkit
● Pull-based metrics gathering system,
simple text format for metrics
exposition
● PromQL: powerful query language
● CNCF member project
PROMETHEUS
https://prometheus.io/
DevConf 2019, Brno
18
Elasticsearch native plugin
● Adding new HTTP endpoint
● Seamless integration with security
existing model (SearchGuard)
● “Low level” Java
● Simple integration testing
● Upgrade require node restart
● https://github.com/vvanholl/elastic
search-prometheus-exporter
ELASTICSEARCH ➔ PROMETHEUS
Elasticsearch does not support metric exposition in Prometheus format
Prometheus exporter
● Requires additional container(s)
● More configuration (security)
● “High level” REST client
● Complex integration testing
● Independent upgrades
GRAFANA
DevConf 2019, Brno
20
Dashboard to visualize Elasticsearch metrics stored in Prometheus.
● Cluster
● Shrads
● OS & JVM
● Indexing
● Searching
● Caches
● Throttling
● Indices (WIP)
● ...
DevConf 2019, Brno
21
ELASTICSEARCH-MIXIN
Magic of Kubernetes-mixin and Jsonnet templates
Bundle of:
● Prometheus recording rules, alerting rules
● Grafana dashboard
Build on top of Jsonnet and Kubernetes-mixin.
Currently at https://github.com/lukas-vlcek/elasticsearch-mixin. This location is likely to
change in the future (community mixins).
ELASTICSEARCH OPERATOR
DevConf 2019, Brno
23
ELASTICSEARCH OPERATOR
Operator pattern for Cluster Logging and Elasticsearch
Elasticsearch
(Cluster)
Kibana
openshift-logging
Namespace
Fluentd
openshift-operators
Namespace
elasticsearch-operator
ClusterLogging
CR
cluster-logging-operator
Elasticsearch
CR
DevConf 2019, Brno
24
OPENSHIFT MONITORING INTEGRATION
Prometheus and Grafana artifacts get loaded
openshift-logging
Namespace
openshift-operators
Namespace
openshift-monitoring
Namespace
Elasticsearch-mixin
artifacts Prometheus
Grafana
Alert Manager
DevConf 2019, Brno
25
WHAT THE FUTURE HOLDS
Cluster Logging Operator and Elasticsearch Operator are opening new horizons
Operator pattern makes deployment and maintenance of complex components simpler
● Where the logs are routed
● Diversified Elasticsearch Topologies
● Modify cluster based on OpenShift Platform Metrics
TIME FOR YOUR QUESTIONS!
THANK YOU
plus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHat
TRADEMARKS and ATTRIBUTIONS:
Elasticsearch is a trademark of Elasticsearch BV, registered in the U.S. and in other countries. Prometheus is trademark of The Linux Foundation
registered in the United Stated and/or other countries. Red Hat and OpenShift are trademarks or registered trademarks of Red Hat, Inc. or its
subsidiaries in the U.S. and other countries. Grafana is trademarks of Coding Instinct. Used photographs are public domain sourced from
https://www.flickr.com/photos/newcastlelibraries/albums

More Related Content

What's hot (20)

PDF
Infrastructure & System Monitoring using Prometheus
Marco Pas
 
PDF
Deploying IPv6 on OpenStack
Vietnam Open Infrastructure User Group
 
PDF
Adopting Open Telemetry as Distributed Tracer on your Microservices at Kubern...
Tonny Adhi Sabastian
 
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
PPTX
GitOps on Kubernetes with Carvel
Alexandre Roman
 
PDF
KubeMonkey를 통한 Chaos Engineering 실전 운영하기 - 윤석찬 (AWS 테크에반젤리스트)
Channy Yun
 
PPTX
Kolla talk at OpenStack Summit 2017 in Sydney
Vikram G Hosakote
 
PDF
Openstack+Ceph設定ガイド
OSSラボ株式会社
 
PPTX
Performance of Microservice frameworks on different JVMs
Maarten Smeets
 
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
PDF
20150511 jun lee_openstack neutron 분석 (최종)
rootfs32
 
PDF
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
PDF
Kubernetes Observability with Prometheus by Example
Thomas Riley
 
PPTX
Dockerと外部ルータを連携させる仕組みを作ってみた
npsg
 
PDF
Deploy Application on Kubernetes
Opsta
 
PPTX
Issues of OpenStack multi-region mode
Joe Huang
 
PDF
Inside neutron 2
Robin Gong
 
PDF
CloudStack - Top 5 Technical Issues and Troubleshooting
ShapeBlue
 
PDF
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
OpenStack Korea Community
 
PDF
(Draft) Kubernetes - A Comprehensive Overview
Bob Killen
 
Infrastructure & System Monitoring using Prometheus
Marco Pas
 
Deploying IPv6 on OpenStack
Vietnam Open Infrastructure User Group
 
Adopting Open Telemetry as Distributed Tracer on your Microservices at Kubern...
Tonny Adhi Sabastian
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
GitOps on Kubernetes with Carvel
Alexandre Roman
 
KubeMonkey를 통한 Chaos Engineering 실전 운영하기 - 윤석찬 (AWS 테크에반젤리스트)
Channy Yun
 
Kolla talk at OpenStack Summit 2017 in Sydney
Vikram G Hosakote
 
Openstack+Ceph設定ガイド
OSSラボ株式会社
 
Performance of Microservice frameworks on different JVMs
Maarten Smeets
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
20150511 jun lee_openstack neutron 분석 (최종)
rootfs32
 
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
Kubernetes Observability with Prometheus by Example
Thomas Riley
 
Dockerと外部ルータを連携させる仕組みを作ってみた
npsg
 
Deploy Application on Kubernetes
Opsta
 
Issues of OpenStack multi-region mode
Joe Huang
 
Inside neutron 2
Robin Gong
 
CloudStack - Top 5 Technical Issues and Troubleshooting
ShapeBlue
 
[OpenInfra Days Korea 2018] (Track 2) Neutron LBaaS 어디까지 왔니? - Octavia 소개
OpenStack Korea Community
 
(Draft) Kubernetes - A Comprehensive Overview
Bob Killen
 

Similar to Elasticsearch Monitoring in Openshift (20)

PPTX
Intro elasticsearch taswarbhatti
Taswar Bhatti
 
PDF
Explore Elasticsearch and Why It’s Worth Using
Inexture Solutions
 
PPTX
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Oleksiy Panchenko
 
PPTX
Elastic Search Capability Presentation.pptx
Knoldus Inc.
 
PDF
Achieving cyber mission assurance with near real-time impact
Elasticsearch
 
PDF
Roaring with elastic search sangam2018
Vinay Kumar
 
PPTX
Elasticsearch - DevNexus 2015
Roy Russo
 
PDF
Elasticsearch speed is key
Enterprise Search Warsaw Meetup
 
PPTX
Elastic pivorak
Pivorak MeetUp
 
PPTX
Elasticsearch { "Meetup" : "talk" }
Lutf Ur Rehman
 
PPTX
Elasticsearch
Divij Sehgal
 
PPTX
About elasticsearch
Minsoo Jun
 
PPTX
Dev nexus 2017
Roy Russo
 
PDF
Elasticsearch Introduction at BigData meetup
Eric Rodriguez (Hiring in Lex)
 
PPTX
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
Ashnikbiz
 
PPTX
Elastic stack Presentation
Amr Alaa Yassen
 
PPTX
Devteach 2017 Store 2 million of audit a day into elasticsearch
Taswar Bhatti
 
PDF
Elasticsearch
Oto Brglez
 
PPTX
Elasticsearch python
valiantval2
 
PPTX
Elastic search
Binit Pathak
 
Intro elasticsearch taswarbhatti
Taswar Bhatti
 
Explore Elasticsearch and Why It’s Worth Using
Inexture Solutions
 
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
Oleksiy Panchenko
 
Elastic Search Capability Presentation.pptx
Knoldus Inc.
 
Achieving cyber mission assurance with near real-time impact
Elasticsearch
 
Roaring with elastic search sangam2018
Vinay Kumar
 
Elasticsearch - DevNexus 2015
Roy Russo
 
Elasticsearch speed is key
Enterprise Search Warsaw Meetup
 
Elastic pivorak
Pivorak MeetUp
 
Elasticsearch { "Meetup" : "talk" }
Lutf Ur Rehman
 
Elasticsearch
Divij Sehgal
 
About elasticsearch
Minsoo Jun
 
Dev nexus 2017
Roy Russo
 
Elasticsearch Introduction at BigData meetup
Eric Rodriguez (Hiring in Lex)
 
2. สัมมนาสดทางออนไลน์ : วิธีตรวจสอบการใช้งาน Container, Kubernetes และ OpenSh...
Ashnikbiz
 
Elastic stack Presentation
Amr Alaa Yassen
 
Devteach 2017 Store 2 million of audit a day into elasticsearch
Taswar Bhatti
 
Elasticsearch
Oto Brglez
 
Elasticsearch python
valiantval2
 
Elastic search
Binit Pathak
 
Ad

More from Lukas Vlcek (7)

PDF
JBug_React_and_Flux_2015
Lukas Vlcek
 
PDF
Elasticsearch @JBoss.org, 2014
Lukas Vlcek
 
PDF
An Introduction to Apache Hadoop, Mahout and HBase
Lukas Vlcek
 
PDF
Building search app with ElasticSearch
Lukas Vlcek
 
PDF
Elastic Search
Lukas Vlcek
 
PDF
JBoss Snowdrop
Lukas Vlcek
 
PDF
Compass Framework
Lukas Vlcek
 
JBug_React_and_Flux_2015
Lukas Vlcek
 
Elasticsearch @JBoss.org, 2014
Lukas Vlcek
 
An Introduction to Apache Hadoop, Mahout and HBase
Lukas Vlcek
 
Building search app with ElasticSearch
Lukas Vlcek
 
Elastic Search
Lukas Vlcek
 
JBoss Snowdrop
Lukas Vlcek
 
Compass Framework
Lukas Vlcek
 
Ad

Recently uploaded (20)

PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
July Patch Tuesday
Ivanti
 

Elasticsearch Monitoring in Openshift

  • 1. ELASTICSEARCH MONITORING IN OPENSHIFT OpenShift Cluster Logging Component Lukáš Vlček SW Engineer, Red Hat DevConf 2019, Brno
  • 2. DevConf 2019, Brno 2 AGENDA We have about 20 minutes ● OpenShift Cluster Logging ● Challenges of running Elasticsearch in OpenShift ● Prometheus & Grafana ● Elasticsearch Operator ● Questions
  • 4. DevConf 2019, Brno 4 OPENSHIFT CLUSTER LOGGING A container log message flow on a node Kubernetes master cri-o Collector Files on disk send off the node kubelet kubectl logs <pod> /var/log/containers/*.log Container Container Container stdout stderr
  • 5. DevConf 2019, Brno 5 OPENSHIFT CLUSTER LOGGING Per Project (Namespace) isolation Pod Container Pod Container Container Namespace Pod Container Container Namespace
  • 6. DevConf 2019, Brno 6 OPENSHIFT CLUSTER LOGGING Openshift-logging Project Openshift-logging Namespace Elasticsearch Node Elasticsearch Node Elasticsearch Node Collector Collector Collector ES service Kibana Curator
  • 8. DevConf 2019, Brno 8 THE DATA MODEL OPERATIONAL & PERFORMANCE TUNING SKILLED PEOPLE WHAT ARE THE CHALLENGES Scaling Elasticsearch with limited resources is hard
  • 10. DevConf 2019, Brno 10 How we store logs into individual indices. ● One index per namespace ● One index per day CH#1 - THE DATA MODEL How the data is physically stored is important Pod Container Pod Container Container Namespace Pod Container Container Namespace Today Today Today - 1 Today - 1 Today - 2 Today - 2 Today - 3 Today - 3
  • 11. DevConf 2019, Brno 11 Scaling issues: ● Number of indices/shards ● Number of index fields Reduce number of indices/shards: ● Rollover API ● Commercial (requires license) ● Spread the load to more clusters CH#1 - THE DATA MODEL How the data is physically stored is important Way too many shards! Index mapping explosion
  • 12. DevConf 2019, Brno PERFORMANCE & OPERATIONAL TUNING
  • 13. DevConf 2019, Brno 13 Physical and functional layout: ● Fast local storage ● Dedicated node roles ● Hot-Warm Monitoring and Alerting: ● Commercial (requires license) ● DIY/3rd party solutions CH#2 - OPS & PERF TUNING Topology of Elasticsearch cluster and underlying HW is important
  • 15. DevConf 2019, Brno 15 There is always someone who takes care of your cluster and typically performs the following tasks: ● Maintenance ● Upgrades ● Troubleshooting CH#3 - SKILLED PEOPLE Someone gets woke up when it happens
  • 17. DevConf 2019, Brno 17 100% open-source and community driven ● Prometheus is systems monitoring and alerting toolkit ● Pull-based metrics gathering system, simple text format for metrics exposition ● PromQL: powerful query language ● CNCF member project PROMETHEUS https://prometheus.io/
  • 18. DevConf 2019, Brno 18 Elasticsearch native plugin ● Adding new HTTP endpoint ● Seamless integration with security existing model (SearchGuard) ● “Low level” Java ● Simple integration testing ● Upgrade require node restart ● https://github.com/vvanholl/elastic search-prometheus-exporter ELASTICSEARCH ➔ PROMETHEUS Elasticsearch does not support metric exposition in Prometheus format Prometheus exporter ● Requires additional container(s) ● More configuration (security) ● “High level” REST client ● Complex integration testing ● Independent upgrades
  • 20. DevConf 2019, Brno 20 Dashboard to visualize Elasticsearch metrics stored in Prometheus. ● Cluster ● Shrads ● OS & JVM ● Indexing ● Searching ● Caches ● Throttling ● Indices (WIP) ● ...
  • 21. DevConf 2019, Brno 21 ELASTICSEARCH-MIXIN Magic of Kubernetes-mixin and Jsonnet templates Bundle of: ● Prometheus recording rules, alerting rules ● Grafana dashboard Build on top of Jsonnet and Kubernetes-mixin. Currently at https://github.com/lukas-vlcek/elasticsearch-mixin. This location is likely to change in the future (community mixins).
  • 23. DevConf 2019, Brno 23 ELASTICSEARCH OPERATOR Operator pattern for Cluster Logging and Elasticsearch Elasticsearch (Cluster) Kibana openshift-logging Namespace Fluentd openshift-operators Namespace elasticsearch-operator ClusterLogging CR cluster-logging-operator Elasticsearch CR
  • 24. DevConf 2019, Brno 24 OPENSHIFT MONITORING INTEGRATION Prometheus and Grafana artifacts get loaded openshift-logging Namespace openshift-operators Namespace openshift-monitoring Namespace Elasticsearch-mixin artifacts Prometheus Grafana Alert Manager
  • 25. DevConf 2019, Brno 25 WHAT THE FUTURE HOLDS Cluster Logging Operator and Elasticsearch Operator are opening new horizons Operator pattern makes deployment and maintenance of complex components simpler ● Where the logs are routed ● Diversified Elasticsearch Topologies ● Modify cluster based on OpenShift Platform Metrics
  • 26. TIME FOR YOUR QUESTIONS!
  • 28. TRADEMARKS and ATTRIBUTIONS: Elasticsearch is a trademark of Elasticsearch BV, registered in the U.S. and in other countries. Prometheus is trademark of The Linux Foundation registered in the United Stated and/or other countries. Red Hat and OpenShift are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the U.S. and other countries. Grafana is trademarks of Coding Instinct. Used photographs are public domain sourced from https://www.flickr.com/photos/newcastlelibraries/albums