diff --git a/patroni_exporter.py b/patroni_exporter.py index 57373d0..eb90db4 100755 --- a/patroni_exporter.py +++ b/patroni_exporter.py @@ -285,6 +285,7 @@ def app(self, environ: Dict, start_response: Any) -> Iterable[ByteString]: url = urlparse(request_uri(environ)) if url.path == '/health': + self.collector.scrape_patroni() # refresh collector status start_response(self.collector.status, [('Content-Type', 'application/json')]) return [b'{}']