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:
commit
9b2a1bebd1
|
@ -96,7 +96,8 @@ def sync_endpoints(source):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
metrics.send("endpoint.certificate.not.found",
|
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
|
continue
|
||||||
|
|
||||||
policy = endpoint.pop("policy")
|
policy = endpoint.pop("policy")
|
||||||
|
|
Loading…
Reference in New Issue