canonical / prometheus-k8s-operator

https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 35 forks source link

Always refresh metrics endpoint reldata on update-status #385

Closed sed-i closed 2 years ago

sed-i commented 2 years ago

Issue

Solution

Add self._set_scrape_job_spec as an observer to update-status.

Fixes #368.

Drawbacks

The user would have to wait for the update-status hook interval to elapse.

Context

This is an alternative to #384.

Testing Instructions

Release Notes

Always refresh metrics endpoint reldata on update-status.

sed-i commented 2 years ago

384 is probably the better solution. Closing this one.