summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-01 17:24:17 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-01 17:24:17 +0100
commitb7651f2b5270e43ac37240a706164fc5a708f39f (patch)
tree8ee639276cbfaa0eb66726afffd19aefd276e8ee
parent47d420a8db254ee2381f491e2b67b5290d093d93 (diff)
downloadnixos-b7651f2b5270e43ac37240a706164fc5a708f39f.tar
nixos-b7651f2b5270e43ac37240a706164fc5a708f39f.tar.gz
nixos-b7651f2b5270e43ac37240a706164fc5a708f39f.tar.bz2
nixos-b7651f2b5270e43ac37240a706164fc5a708f39f.tar.xz
nixos-b7651f2b5270e43ac37240a706164fc5a708f39f.zip
...
-rw-r--r--overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py3
-rw-r--r--overlays/zte-prometheus-exporter/zte-prometheus-exporter.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
index a8ac966e..484228c8 100644
--- a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
+++ b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
@@ -118,6 +118,9 @@ class NFTMetrics:
118 return metrics.encode('utf-8') 118 return metrics.encode('utf-8')
119 119
120class NFTMetricsServer(BaseHTTPRequestHandler): 120class NFTMetricsServer(BaseHTTPRequestHandler):
121 def log_message(self, format, *args):
122 pass
123
121 def do_GET(self): 124 def do_GET(self):
122 nft_metrics = NFTMetrics.instance() 125 nft_metrics = NFTMetrics.instance()
123 nft_metrics.update() 126 nft_metrics.update()
diff --git a/overlays/zte-prometheus-exporter/zte-prometheus-exporter.py b/overlays/zte-prometheus-exporter/zte-prometheus-exporter.py
index a0e1f23c..fc719a96 100644
--- a/overlays/zte-prometheus-exporter/zte-prometheus-exporter.py
+++ b/overlays/zte-prometheus-exporter/zte-prometheus-exporter.py
@@ -183,6 +183,9 @@ class ZTEMetrics:
183 return metrics.encode('utf-8') 183 return metrics.encode('utf-8')
184 184
185class ZTEMetricsServer(BaseHTTPRequestHandler): 185class ZTEMetricsServer(BaseHTTPRequestHandler):
186 def log_message(self, format, *args):
187 pass
188
186 def do_GET(self): 189 def do_GET(self):
187 zte_metrics = ZTEMetrics.instance() 190 zte_metrics = ZTEMetrics.instance()
188 zte_metrics.update() 191 zte_metrics.update()