aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgenofire <geno+dev@fireorbit.de>2020-06-10 12:12:46 +0200
committergenofire <geno+dev@fireorbit.de>2020-06-10 12:12:46 +0200
commitd5304e67ebce724dcf927a58cd590b5c490cc6c5 (patch)
treeaa6cfcc804852894d2728006fd3c92c0ea019c08
parenta6d1ae443e4e613008b2b349bdbb49591cbc1626 (diff)
prometheus: fix client by ip
-rwxr-xr-xprometheus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/prometheus.py b/prometheus.py
index 007b4f6..d2ffcf5 100755
--- a/prometheus.py
+++ b/prometheus.py
@@ -92,7 +92,7 @@ class Prometheus():
online_ipversion.labels(host,node,k).set(v)
for client, data in self._metrics.get_online_client_by_ipversion(node=node,vhost=host).items():
for k, v in data.items():
- online_client_ipversion.labels(host,node,str(k),client).set(v)
+ online_client_ipversion.labels(host,node,client,str(k)).set(v)
return registry