

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Metrics
incomplete
2: Prometheus
incomplete
3: System Metrics
incomplete
4: Metrics Exporters
incomplete
5: What to Measure
incomplete
6: Visualizing Metrics
incomplete
7: Service Metrics
incomplete
8: Custom Metrics
incomplete
9: Custom Visualizations
incomplete
10: Status Code Bars
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
We can measure all sorts of things in our applications, but which ones are valuable? It depends on your context!
If Linko is your startup's core product, you'll probably want to measure some things for Business Intelligence, such as:
How many new users are signing up?
How often do users cancel their account?
How often are they sharing shortened links on social media?
From an operations standpoint, we're more likely interested in things like:
How many shortening requests do we get?
How many unshortening (redirect) requests do we get?
How many requests fail?
How long do requests take on average?
There are a few models we can use to focus on which metrics matter most: R.E.D. and U.S.E..
The RED Method applies most closely to services that perform requests, like our Linko service.
Rate: The number of requests per second.
Errors: The number of those requests that are failing.
Duration: How long those requests take.
In this model, Rate and Errors are counters, and Duration is typically represented as a histogram.
The related USE Method applies more to finite resources – things like CPU, memory, and disk space.
Utilization: The percentage of time the resource is busy or the percentage of the resource consumed.
Saturation: The amount of work the resource has to do, such as queue length.
Errors: The count of error events.