SlideShare a Scribd company logo
Metrics Stream Processing Using Riemann
Pradeep Chhetri
Metrics Stream Processing Using Riemann
Pradeep Chhetri
Introduction
Introduction
Event processing system designed specifically for metrics
Written in Clojure
Riemann configuration is Clojure code
Built on Netty and Protocol Buffers
Transient system
Supports mutual TLS
Riemann Core
Concepts
Riemann Core Concepts
Riemann Event
Riemann Index
Riemann Stream
Riemann Event
Riemann Event
Riemann Index
Riemann Index
Lock-free implementation of Java concurrent hashmap
In memory
Stores the latest event for a pair of (host, service)
Event stays in index upto the ttl
Riemann dash reads the index and displays the data
Riemann Stream
Riemann Stream
Clojure Functions
Filter events from stream
Split a stream into multiple streams
Merge multiple streams into one stream
Riemann Stream: Print
Riemann Stream: Filter
Riemann Stream: Filter
Riemann Stream: Split
Riemann Stream: Merge
Sending Data to
Riemann
Sending Data to Riemann
Sending Data to Riemann
Collectd
Logstash
Syslog-ng
Riemann
Configuration
Riemann Configuration
Riemann config is Clojure code
Divide config into smaller, testable & reusable pieces using Clojure functions
Organise them into Clojure namespaces
Configuration
Riemann Configuration: Organise
/etc/riemann/myorg/infra.clj
Riemann Configuration: Organise
/etc/riemann/riemann.config
Riemann Configuration: Testing
Clojure tests
Supports adding tests with riemann.test/tap
Tap is like breakpoints where you would like to observe the stream
Riemann Configuration: Testing
Monitoring
Examples
Detect Service Going Down
TTL means how many seconds
the event is valid for after its
occurrence
Once expired:
- event is removed from index
- state is changed to “expired”
- reinjected into the stream
Things breaking
Flood of events leading to flood of alerts
Need to know that problem exists but don’t need to know every single failure
Things breaking: Rollup
Things breaking: Throttle
Things breaking: Rollup & Throttle
Scaling
Riemann
Scaling Riemann
No automatic sharding
Scaling Riemann
We can make use of two streams:
batch
async-queue
Scaling Riemann
Thank you
Resources:
https://riemann.io/
https://github.com/riemann/riemann

More Related Content

PPTX
Monitoring with riemann
PPTX
My Talk Slides for Clojured Berlin 2019
PPTX
SIEM presentation final
PDF
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPC
PDF
Flink Forward Berlin 2018: Stephan Ewen - Keynote: "Unlocking the next wave o...
PDF
[Meetup ms] Kafka Streams
PPT
Complex Event Processing
PPTX
Harvesting the Power of Samza in LinkedIn's Feed
Monitoring with riemann
My Talk Slides for Clojured Berlin 2019
SIEM presentation final
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPC
Flink Forward Berlin 2018: Stephan Ewen - Keynote: "Unlocking the next wave o...
[Meetup ms] Kafka Streams
Complex Event Processing
Harvesting the Power of Samza in LinkedIn's Feed

Similar to OSMC 2022 | Metrics Stream Processing Using Riemann by Pradeep Chhertri (17)

PDF
Combining logs, metrics, and traces for unified observability
PPTX
Flink Forward Berlin 2017: Dongwon Kim - Predictive Maintenance with Apache F...
PPTX
High-Speed Reactive Microservices - trials and tribulations
PPTX
[DSC Europe 23] Pramod Immaneni - Real-time analytics at IoT scale
PDF
Grokking Streaming Systems: Real-time event processing 1st Edition Josh Fischer
PPTX
Guido schmutz-jax2011-event-driven soa
PDF
ESM_101_6.9.0.pdf
PDF
LF_DPDK17_Event Adapters - Connecting Devices to Eventdev
PDF
LeanXcale Presentation - Waterloo University
PDF
Complex Event Processor 3.0.0 - An overview of upcoming features
PDF
Flow control 11
PDF
Flink Streaming Berlin Meetup
PDF
Combining Logs, Metrics, and Traces for Unified Observability
PDF
Enhancing Network Visibility Based On Open Converged Network Appliance
PPTX
ITB2016 - AWS lambda
PPTX
AWS Lambda
PDF
Q radar architecture deep dive
Combining logs, metrics, and traces for unified observability
Flink Forward Berlin 2017: Dongwon Kim - Predictive Maintenance with Apache F...
High-Speed Reactive Microservices - trials and tribulations
[DSC Europe 23] Pramod Immaneni - Real-time analytics at IoT scale
Grokking Streaming Systems: Real-time event processing 1st Edition Josh Fischer
Guido schmutz-jax2011-event-driven soa
ESM_101_6.9.0.pdf
LF_DPDK17_Event Adapters - Connecting Devices to Eventdev
LeanXcale Presentation - Waterloo University
Complex Event Processor 3.0.0 - An overview of upcoming features
Flow control 11
Flink Streaming Berlin Meetup
Combining Logs, Metrics, and Traces for Unified Observability
Enhancing Network Visibility Based On Open Converged Network Appliance
ITB2016 - AWS lambda
AWS Lambda
Q radar architecture deep dive
Ad

Recently uploaded (20)

PPTX
L1 - Introduction to python Backend.pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
top salesforce developer skills in 2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Digital Strategies for Manufacturing Companies
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
medical staffing services at VALiNTRY
L1 - Introduction to python Backend.pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Softaken Excel to vCard Converter Software.pdf
Design an Analysis of Algorithms II-SECS-1021-03
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
top salesforce developer skills in 2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Odoo Companies in India – Driving Business Transformation.pdf
Digital Strategies for Manufacturing Companies
Which alternative to Crystal Reports is best for small or large businesses.pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Design an Analysis of Algorithms I-SECS-1021-03
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
medical staffing services at VALiNTRY
Ad

OSMC 2022 | Metrics Stream Processing Using Riemann by Pradeep Chhertri