Learn how to instrument Python applications and collect real-time metrics using Prometheus. Explore the advantages of metrics over logging, understand different metric types, and discover best practices for naming and configuration. Dive into the pull-based architecture, metric formats, and aggregation techniques. Gain hands-on experience with dashboards using Grafana, set up alerts, and leverage system insights. Master the art of instrumenting your code and utilize tools like mtail and cat-or.not for comprehensive monitoring. By the end of this talk, acquire the skills to impress colleagues with beautiful graphs and intelligent monitoring in production environments.
Overview
Syllabus
Intro
Goals
Service Level Indicator
Instrument
Metric Types
Averages
Naming
Configuration
Pull: Problems
Pull: Advantages
Metrics Format
Percentiles
Aggregation
Internal
PromDash
Grafana
Alerts & Scrying
Environment
System Insight
mtail
Code
cat-or.not
Wrapper
Goodies
Wrap Up
Taught by
EuroPython Conference