Merge pull request #2849 from hosseinsh/better-metrics-endpoints

adding account number for better logging, since the endpoint is not a…
This commit is contained in:
Hossein Shafagh 2019-08-21 10:13:02 -07:00 committed by GitHub
commit 9b2a1bebd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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