designate/designate/metrics_client
Erik Olof Gunnar Andersson 7acd220c44 Simplified metrics implementation
If monascastatsd is installed, the current implementation
will always open a socket when starting designate, even if
metrics is disabled in the configuration.

This patch changes this by changing the way the timer was
implemented, making sure that the metrics implemention
is only loaded when needed.

* Made the error message obvious when metrics is disabled,
  and when we are missing the monasca-statsd client.
* Removed support for the timed decorator.

Change-Id: I508269ae3baac9882a51fb61ce55d6169ffddad3
2019-06-09 01:29:37 -07:00
..
__init__.py Add noop metrics client 2016-10-27 18:56:23 +00:00
noop.py Simplified metrics implementation 2019-06-09 01:29:37 -07:00