From d5304e67ebce724dcf927a58cd590b5c490cc6c5 Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 10 Jun 2020 12:12:46 +0200 Subject: prometheus: fix client by ip --- prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf