If you look through the relabling rules for the job you should be
able to see what is going on. Look at the details on the SD page
and work out which rule is dropping it. It should then suggest
what you need to do to make it work.
Thanks Stuart,
I have looked around and I can't find it. I'd be grateful if someone could take a look at one of these dropped pods labels and my scrape config and let me know if you see where it is dropped.
It looks like this bit might be dropping the target:
- source_labels:
[__meta_kubernetes_service_annotation_prometheus_io_path]
action: keep
target_label: __metrics_path__
regex: (.+)
It is looking for an annotation called prometheus_io_path which
is copied to the __metrics_path__ label (which sets the path to
scrape).
As this annotation doesn't seem to exist in your example this
doesn't match, and because the action is keep the target is
dropped.
So try adding that annotation with the correct metric path value.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0598e514-fdd5-449c-aa77-5241957c3446n%40googlegroups.com.
-- Stuart Clark