providing a count for conflicts
This commit is contained in:
parent
9037f88430
commit
14e13b512e
|
@ -113,12 +113,12 @@ def sync_endpoints(source):
|
||||||
|
|
||||||
if len(lemur_matching_cert) > 1:
|
if len(lemur_matching_cert) > 1:
|
||||||
current_app.logger.error(
|
current_app.logger.error(
|
||||||
"Too Many Certificates Found. Name: {0} Endpoint: {1}".format(
|
"Too Many Certificates Found{0}. Name: {1} Endpoint: {2}".format(
|
||||||
certificate_name, endpoint["name"]
|
len(lemur_matching_cert), certificate_name, endpoint["name"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
metrics.send("endpoint.certificate.conflict",
|
metrics.send("endpoint.certificate.conflict",
|
||||||
"counter", 1,
|
"gauge", len(lemur_matching_cert),
|
||||||
metric_tags={"cert": certificate_name, "endpoint": endpoint["name"],
|
metric_tags={"cert": certificate_name, "endpoint": endpoint["name"],
|
||||||
"acct": s.get_option("accountNumber", source.options)})
|
"acct": s.get_option("accountNumber", source.options)})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue