Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Setting Grafana variables

If you go to Settings (in the upper-right corner) and select Variables, we can add a new pod variable:

Besides the name of the variable, we set its type as query to obtain its values from a Prometheus http_request_duration_microseconds_bucket query. We then set /.*pod="([^"]*).*/ as the regex that will extract the pod label value from each observation.

Recall that each Prometheus observation has the format <metric_name>{<lbl1>=<lbl1_val>,<lbl2>=<lbl2_val>,...} <value> <timestamp>.

The pod variable can assume distinct values of the pod label, but because we also selected the Include All option, we may say that the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content