summaryrefslogtreecommitdiff
path: root/overlays/nftables-prometheus-exporter
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/nftables-prometheus-exporter')
-rw-r--r--overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py3
1 files changed, 3 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()