Open VLZZZ opened 7 months ago
Hello,
I create a PR for this. In the litmus-agent, the serviceMonitor and Service only select the exporter pods. Make sense the litmus-core should do the same. If we need to retrieve the metrics of the operator we probably need to add a podMonitor instead.
Hi! I've just found that litmus ServiceMonitor for metrics collection seems to be misconfigured
I deep dived a bit and it looks like ServiceMonitor selector:
which is resulted in
litmus-monitor
service (kubernetes service entity).That has a Pod selector:
But this selector covers both
litmus
andlitmus-monitor
pods.But only
litmus-monitor-*
has port namedhttp
at8080
and serves prometheus metrics Whilelitmus-*
pod hashttp
at 80 with no prometheus metrics. (litmus pods can server defaultgo
metrics at8080
but it's a different story and I don't think that we need this)I believe we need to narrow selector to match
litmus-monitor
only.Or to allow
additionalLables
for the selector