prometheus: fix client by ip

This commit is contained in:
genofire 2020-06-10 12:12:46 +02:00
parent a6d1ae443e
commit d5304e67eb
1 changed files with 1 additions and 1 deletions

View File

@ -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