-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure Flask-Monitor is singleton (#4)
* Teste Signed-off-by: Gustavo Coelho <gutorc@hotmail.com> * make metrics registry singleton and stops Timer thread when close Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * update docs to watch_dependencies Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * improve tests Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * install nose to run testes Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * use default prom registry if none passed Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * include tests for watch_dependencies Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * isError receives conditional result Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * using extensions to hold prometheus registry Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * default status code value to exception Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * splited watch_dependencies in watch_dependencies and collect_dependency_time Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * improved simple_example Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * using status code as result in example Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * removed global statement Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * removed use of kwargs Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * removed start time from cdt Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> Co-authored-by: Gustavo Coelho <gutorc@hotmail.com>
- Loading branch information
Showing
13 changed files
with
290 additions
and
208 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .metrics import register_metrics, watch_dependencies | ||
""" Functions for define and register metrics """ | ||
from .metrics import register_metrics, watch_dependencies, collect_dependency_time |
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
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.