Hello All,
Need your help with lld Macros and filters in discovery
I have created an item of type http where I am running Prometheus query and fetching json data.
Using this item I have created a dependent discovery where I am using preprocessing as $.data.metrics[*].metrics
From this I m fetching multiple lld macros.
I have a metric named Ab_serive which contains name like abx-main abx- backup
I am storing {#abc1} $.ab_service
{#abc2} $.ab_service storing same values in both macros.
While applying filters
Abc1 matches .*main
Abc2 matches .*backup
Or
Abc1 matches .*main
Abc1 doesnotmatch .*backup
Abc2 matches .*backup
Abc2 doesnot matches .*main
These filters are not working as expected any suggestions?
Need your help with lld Macros and filters in discovery
I have created an item of type http where I am running Prometheus query and fetching json data.
Using this item I have created a dependent discovery where I am using preprocessing as $.data.metrics[*].metrics
From this I m fetching multiple lld macros.
I have a metric named Ab_serive which contains name like abx-main abx- backup
I am storing {#abc1} $.ab_service
{#abc2} $.ab_service storing same values in both macros.
While applying filters
Abc1 matches .*main
Abc2 matches .*backup
Or
Abc1 matches .*main
Abc1 doesnotmatch .*backup
Abc2 matches .*backup
Abc2 doesnot matches .*main
These filters are not working as expected any suggestions?
Comment