mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-07 12:05:37 +00:00
Fix Prometheus exporter for management and health endpoints
This commit is contained in:
parent
d1588c1156
commit
40bd1cba4c
@ -33,6 +33,10 @@ def prometheus_plugin(callback):
|
||||
def export_metrics(actual_response):
|
||||
res = V1ResponseBase(actual_response)
|
||||
|
||||
if res.startTimestamp is None or res.endTimestamp is None:
|
||||
# skip management and healthcheck endpoints
|
||||
return
|
||||
|
||||
domain = "unknown"
|
||||
if res.solution and res.solution.url:
|
||||
parsed_url = urllib.parse.urlparse(res.solution.url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user