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
With the merging of #836, I was able to get the target allocator to successfully pull in PodMonitor and ServiceMonitor CRDs. Each collector is then using their generated http_sd_config as shown below:
At first glance, this looks fine, but looking at the logs from the collector-o pod:
2022-06-13T15:36:33.208Z error refresh/refresh.go:98 Unable to refresh target groups {"kind": "receiver", "name": "prometheus", "discovery": "http", "err": "server returned HTTP status 404 Not Found"}
To figure out why we the collector was getting a 404, i started up a small curl pod and ran:
> curl http://lightstep-collector-targetallocator:80/jobs/serviceMonitor/testapp/testapp/0/targets?collector_id=lightstep-collector-collector-0
404 page not found
When running a curl on the jobs endpoint, we can see that the job exists, however it has a different link:
With the merging of #836, I was able to get the target allocator to successfully pull in
PodMonitor
andServiceMonitor
CRDs. Each collector is then using their generated http_sd_config as shown below:At first glance, this looks fine, but looking at the logs from the collector-o pod:
To figure out why we the collector was getting a 404, i started up a small curl pod and ran:
When running a curl on the jobs endpoint, we can see that the job exists, however it has a different link:
The issue in the collector configuration seems to be that we aren't encoding the ServiceMonitor CRD name's / as %2F.
From there, I queried this link and got a correct response:
Finally, I queried the
_link
provided to be sure that once we fix the encoding bug, things will work as expected, however I got an empty list back:So ultimately, it seems there are two issues:
The text was updated successfully, but these errors were encountered: