7. What is a Metric?
● A named variable: "sys.mem.free"
● With tags: "host=sl075", "code=403", ...
avg("sys.mem.free") from 1 hour ago
where host="sl075"
14. Design Decisions
● Use familiar tools: Erlang, Riak, HTTP
● Not a critical service but ...
● ... Avoid SPOF
● Write performance >> read performance
● Centralized reference clock
● Integer only
● Avoid 2i if possible
● When in doubt, leave it to Riak
22. Key Points
● One bucket per metric as before
● Split into hour-sized chunks
(configurable)
● Chunk key: Epoch time
● Chunk value: List of samples
● To read: Fetch chunks within interval
● To write: Fetch chunk, add sample, write
back