From e793bf4b6a6e2b9fe486c5eac123a482c6bdf017 Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 2 Nov 2022 19:29:49 +0100 Subject: [PATCH] export boolean as int --- gas-station-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-station-exporter.py b/gas-station-exporter.py index 43015b2..2a9b1d6 100644 --- a/gas-station-exporter.py +++ b/gas-station-exporter.py @@ -38,7 +38,7 @@ class RequestHandler(BaseHTTPRequestHandler): self.end_headers() self.wfile.write(bytes(exporter_prefix + "expoter_duration_seconds_sum " + str(int((datetime.now() - startTime).total_seconds())) + "\n", "utf-8")) self.wfile.write(bytes(exporter_prefix + "exporter_request_count " + str(request_count) + "\n", "utf-8")) - self.wfile.write(bytes(exporter_prefix + "exporter_scrape_healthy " + str(scrape_healthy) + "\n", "utf-8")) + self.wfile.write(bytes(exporter_prefix + "exporter_scrape_healthy " + str(int(scrape_healthy)) + "\n", "utf-8")) for metric in station_metrics: #print(metric)