From 1e50023af2505e7a5fbad350d0c8a666e78d4fb9 Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Sat, 1 Jan 2022 16:55:40 +0100
Subject: ...

---
 .../nftables-prometheus-exporter/nftables-prometheus-exporter.py  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'overlays/nftables-prometheus-exporter')

diff --git a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
index c5c5139d..7304d53d 100644
--- a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
+++ b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py
@@ -119,8 +119,8 @@ class NFTMetrics:
 
 class NFTMetricsServer(BaseHTTPRequestHandler):
     def do_GET(self):
-        zte_metrics = NFTMetrics.instance()
-        zte_metrics.update()
+        nft_metrics = NFTMetrics.instance()
+        nft_metrics.update()
 
         url = urlparse(self.path)
 
@@ -130,13 +130,13 @@ class NFTMetricsServer(BaseHTTPRequestHandler):
                 self.send_header("Content-type", "application/json")
                 self.end_headers()
 
-                self.wfile.write(zte_metrics.json_text().encode('utf-8'))
+                self.wfile.write(nft_metrics.json_text().encode('utf-8'))
             case '/metrics':
                 self.send_response(200)
                 self.send_header("Content-type", "text/plain")
                 self.end_headers()
                 
-                self.wfile.write(zte_metrics.prometheus())
+                self.wfile.write(nft_metrics.prometheus())
             case _:
                 self.send_response(404)
                 self.end_headers()
-- 
cgit v1.2.3