Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
8 changed files
with
424 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.