GoogleCloudPlatform / prometheus-engine

Google Cloud Managed Service for Prometheus libraries and manifests.
https://g.co/cloud/managedprometheus
Apache License 2.0
196 stars 92 forks source link

fix: support target status for cadvisor #1115

Closed pintohutch closed 3 months ago

pintohutch commented 3 months ago

Cherry pick of ccab5b3e7dad9a61ce159e438dba214f1b094234 onto the 0.13 release branch, so we can release a patch fix v0.13.1 candidate.

We had not tested ClusterNodeMonitoring-generated cadvisor scrape targets, which have an additional path suffix in the scrape pool. We consider that here when building the endpoint status and add a unit test.

This fixes #1097.