diff --git a/prometheuspvesd/discovery.py b/prometheuspvesd/discovery.py index 4f71ac7..ee961c6 100644 --- a/prometheuspvesd/discovery.py +++ b/prometheuspvesd/discovery.py @@ -132,7 +132,7 @@ class Discovery: if str(obj["vmid"]) in self.config.config["exclude_vmid"]: continue - if isinstance(obj["tags"], str) and not set(obj["tags"].split(",")).isdisjoint( + if isinstance(obj["tags"], str) and not set(obj["tags"].split(";")).isdisjoint( self.config.config["exclude_tags"] ): continue diff --git a/prometheuspvesd/test/fixtures/fixtures.py b/prometheuspvesd/test/fixtures/fixtures.py index bed5716..f03bf3a 100644 --- a/prometheuspvesd/test/fixtures/fixtures.py +++ b/prometheuspvesd/test/fixtures/fixtures.py @@ -212,7 +212,7 @@ def qemus(): "status": "running", "netout": 12159205236, "mem": 496179157, - "tags": "unmonitored,excluded,postgres" + "tags": "unmonitored;excluded;postgres" }, { "diskwrite": 0,