Application metrics with Prometheus
summary
A practical walkthrough of instrumenting PHP services with Prometheus to drive decisions: a feedback pipeline is built with counters and histograms, metrics stored in APCu/Redis and exposed on a /metrics endpoint, and Prometheus uses a Prometheus pull model to scrape them. Team picks 150ms SLO for submit-response based on user perception, uses histogram buckets and percentiles to spot slow tails, and warns against over‑optimizing or hiding reliability by exceeding required SLOs.
AI-written summary · about
chapters (24)
- 0:00Intro
- 0:51How do you do metrics?
- 4:08Metrics are insights into the current state of your application.
- 4:35Metrics tell you if your service is healthy.
- 5:08Metrics tell you what
- 7:04Service Level Indicators
- 7:34Service Level Objectives
- 8:13Help you drive architectural decisions, like optimisation
- 10:19Service Level Agreements
- 11:18Measuring
- 15:56Request Latency
- 17:33Picking good SLS
- 18:28Understanding the nature of your system
- 18:44User-Facing serving system? availability, throughput, latency
- 19:16Storage System? availability, durability, latency
- 19:42Big Data Systems? throughput, end-to-end latency
- 23:08Don't pick a target based on current performance
- 27:31Don't over achieve. The Chubby example.
- 30:25Attach consequences to your objectives.
- 30:48The night is dark and full of loopholes. take a friend from legal with you.
- 31:12Safety Margins. like setting the alarm 5 minutes before the meeting.
- 34:26Telemetry Statistics
- 47:45You can't act on what you can't see.
- 49:49Metrics without actionability are just numbers on a screen.
related talks
05mLightning Talk: PHP and Prometheus For better Metrics
45mMicroProfile Metrics: Practical Use Cases
43mFinding the Golden Signals with Prometheus
41mMetrics Applied
47mGet Instrumented: How Prometheus Can Unify Your Metrics
27mGrand Treatise of Modern Instrumentation and Orchestration
38mPerformance Testing of Prometheus Based Metric Platforms
10mPrometheus for Monitoring Metrics - Database Monitoring Tools
