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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.