The RED Method defines three key metrics you should measure for every microservice in your architecture; inspired by the USE Method from Brendan Gregg, it gives developers a template for instrumenting their services and building dashboards in a consistent, repeatable fashion.
In this talk we will discuss patterns of application instrumentation, where and when they are applicable, and how they can be implemented with Prometheus. We’ll cover Google’s Four Golden Signals, the RED Method, the USE Method, and Dye Testing. We’ll also discuss why consistency is an important approach for reducing cognitive load. Finally we’ll talk about the limitations of these approaches and what can be done to overcome them.
08448380779 Call Girls In Friends Colony Women Seeking Men
The RED Method: How to monitoring your microservices.
1. The RED Method
Patterns for instrumentation & monitoring.
Tom Wilkie
tom@grafana.com @tom_wilkie
github.com/tomwilkie
2.
3. Introduction
Why does this matter?
The USE Method
Utilisation, Saturation, Errors
The RED Method
Requests Rate, Errors, Duration..
The Four Golden Signals
RED + Saturation
6. For every resource, monitor:
• Utilisation: % time that the resource was busy
• Saturation: amount of work resource has to do, often queue length
• Errors: the count of error events
http://www.brendangregg.com/usemethod.html
8. CPU USE in Prometheus
CPU Utilisation:
1 - avg(rate(node_cpu{job="default/node-exporter",mode="idle"}[1m]))
CPU Saturation:
sum(node_load1{job="default/node-exporter"})
/
sum(node:node_num_cpu:sum)
14. For every service, monitor request:
• Rate - number of requests per second
• Errors - the number of those requests that are failing
• Duration - the amount of time those requests take
The RED Method
23. More Details
• “Monitoring Microservices” - Weaveworks (slides)
• "The RED Method: key metrics for microservices architecture” - Weaveworks
• “Monitoring and Observability with USE and RED” - VividCortex
• “RED Method for Prometheus – 3 Key Metrics for Monitoring” - Rancher Labs
• “Logs and Metrics” - Cindy Sridharan
• "Logging v. instrumentation”, “Go best practices, six years in” - Peter Bourgon
26. The Four Golden Signals
For each service, monitor:
• Latency - time taken to serve a request
• Traffic - how much demand is places on your system
• Errors - rate or requests that are failing
• Saturation - how “full” your services is
33. +
Grafana Cloud is a hosted and fully managed SaaS metrics
platform that helps Ops and Dev teams using Grafana
to understand the behavior of their applications and
infrastructure
Grafana Cloud allows users to provision and manage
the best open source observability tools - Grafana and
Prometheus - all through a simple UI and single API.
What is Grafana Cloud?
Store, visualize and alert without the headache of scaling or managing
your own monitoring stack.
Your complete, fully managed, hosted metrics platform.
Grafana Cloud: