Summary
Recently, when running the exporter with a large configuration (i.e. around 3k entries), we saw a big heap allocation to store the state inside the FSM for glob matching. This issue is just a sanity check to see if we should have be seeing this amount of memory usage.
For comparison, in the previous version of the configuration (with a couple hundred entries) we were seeing 30MiB~ usage per instance on idle, with the new huge configuration we are seeing around 150MiB usage.
For now, as a workaround we are using regex matching, which (due to LRU matcher in the mapper) has not changed CPU usage a lot.
This is the heap for glob matcher:

And this one is for the regex matcher:

Summary
Recently, when running the exporter with a large configuration (i.e. around 3k entries), we saw a big heap allocation to store the state inside the FSM for glob matching. This issue is just a sanity check to see if we should have be seeing this amount of memory usage.
For comparison, in the previous version of the configuration (with a couple hundred entries) we were seeing 30MiB~ usage per instance on idle, with the new huge configuration we are seeing around 150MiB usage.
For now, as a workaround we are using regex matching, which (due to LRU matcher in the mapper) has not changed CPU usage a lot.
This is the heap for glob matcher:

And this one is for the regex matcher:
