Welcome to the Linux Foundation Forum!

Lab 12.1 - Using Relabeling to Drop Samples

I added metric_relabel_configs as in example of Lab:


  • action: keep
    source_labels: [name]
    regex: '(demo_|http_).*'

Reloads its configuration file

The prometheus continues showing other queries, not only started from demo_ or http_

However, when I changed action to drop, it worked well. Queries started from demo_ and http_ weren't showed in table.


Anybody knows why action **keep **doesn't work?


Upcoming Training