I have a vendor MIB that exposes a lot of data. I only care about maybe 1/16th of the rows in the table, though.
I’m looking at the
PersistRegexSelectorStrategy in the datacollection configuration, but I’m not seeing any way to limit based upon the index. I’ve tried expressions like “(#index matches ‘.1.8$’)”, but get errors like:
WARN [Collectd-Thread-6-of-50] o.o.n.c.PersistRegexSelectorStrategy: shouldPersist: can't evaluate expression (#index matches '\.1\.8$') for resource node.fooEntry[4016.1.8] because: EL1037E:(pos 1): First operand to matches operator must be a string. 'null' is not
Is there a subtle trick to do what I’m looking for here (only match entries in the “foo” table if the index ends in “.1.8”) with the built in PersistRegexSelectorStrategy? Or would I need to write a new
PersistenceSelectorStrategy implementation to handle this case?