You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1127 a new CRD field called filterStrategy was added. However, the relabel-config option drops all targets in the case of using a serviceMonitor that uses the hashmod action in the relabel_config. The resulting label will be matched with the environment variable $(SHARD), but in the prehook no environment variable substitution is taking place.
In #1127 a new CRD field called
filterStrategy
was added. However, therelabel-config
option drops all targets in the case of using a serviceMonitor that uses thehashmod
action in the relabel_config. The resulting label will be matched with the environment variable$(SHARD)
, but in the prehook no environment variable substitution is taking place.What I expected
filterStrategy: relabel-config
to work properly with serviceMonitors. i.e. targets are filtered properly according to prometheusrelabel_config
What actually happened
I observe serviceMonitors running in my cluster but no jobs discovered when I set
filterStrategy: relabel-config
and runWhen checking logs I notice that all targets are dropped.
The text was updated successfully, but these errors were encountered: