openstacksdk/releasenotes/notes/request-stats-9d70480bebbdb4d6.yaml
Monty Taylor c8b96cddd3 Collect request stats
This is a thing that nodepool has been doing for ages. With the upcoming
changes to remove the task manager, the mechanism it has been using to
put activity in the right place isn't going to be available anymore. But
also, people using openstacksdk from within a service might also want to
be able to do the same logging.

This improves upon the old method as well, as it uses the history in the
response object to get and report on all of the calls made as part of a
request. This will catch things that do auto retries.

While we're in there, add support for reporting to prometheus instead.
The prometheus support does not read from config, and does not run an
http service, since openstacksdk is a library. It is expected that
an application that uses openstacksdk and wants request stats collected
will pass a prometheus_client.CollectorRegistry to collector_registry.

Change-Id: I7218179dd5f0c068a52a4704b2ce1a0942fdc0d1
2019-03-11 19:45:04 +00:00

6 lines
117 B
YAML

---
features:
- |
Added support for collecting and reporting stats on calls made to
statsd and prometheus.