From db91e48395da9273b16405283bfddf20a27ca43b Mon Sep 17 00:00:00 2001 From: Hossein Shafagh Date: Wed, 21 Aug 2019 09:54:18 -0700 Subject: [PATCH] adding account number for better logging, since the endpoint is not available in Lemur DB --- lemur/sources/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemur/sources/service.py b/lemur/sources/service.py index b6bdb1be..d5bd7426 100644 --- a/lemur/sources/service.py +++ b/lemur/sources/service.py @@ -96,7 +96,8 @@ def sync_endpoints(source): ) ) metrics.send("endpoint.certificate.not.found", - "counter", 1, metric_tags={"cert": certificate_name, "endpoint": endpoint["name"]}) + "counter", 1, + metric_tags={"cert": certificate_name, "endpoint": endpoint["name"], "acct": s.get_option("accountNumber", source.options)}) continue policy = endpoint.pop("policy")