Vector-based metrics

One of the more interesting Prometheus features is its support for partitioning collected samples across one or more dimensions (labelsin Prometheus terminology). If we opt to use this feature, instead of having a single metric instance, we can work with a vector of metric values.

In the following example, we have just launched an A/B test for a new website layout and we are interested in tracking the number of user registrations for each of the page layouts that we are actively trialing:

This time, ...

Get Hands-On Software Engineering with Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.