From d1607592296a27e4dd92697041d29e941affc335 Mon Sep 17 00:00:00 2001 From: Noctua <98737499+observability-noctua-bot@users.noreply.github.com> Date: Tue, 17 Jan 2023 16:25:15 +0100 Subject: [PATCH] chore: update charm libraries (#71) Co-authored-by: Github Actions --- lib/charms/loki_k8s/v0/loki_push_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/charms/loki_k8s/v0/loki_push_api.py b/lib/charms/loki_k8s/v0/loki_push_api.py index 6a05d5d0..85b93843 100644 --- a/lib/charms/loki_k8s/v0/loki_push_api.py +++ b/lib/charms/loki_k8s/v0/loki_push_api.py @@ -484,7 +484,7 @@ def _alert_rules_error(self, event): # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 13 +LIBPATCH = 14 logger = logging.getLogger(__name__) @@ -766,7 +766,7 @@ def _from_file(self, root_path: Path, file_path: Path) -> List[dict]: # any string as a "wildcard" which the topology labels will # filter down alert_rule["expr"] = self.tool.inject_label_matchers( - re.sub(r"%%juju_topology%%", r'job=".+"', alert_rule["expr"]), + re.sub(r"%%juju_topology%%", r'job=~".+"', alert_rule["expr"]), self.topology.label_matcher_dict, )