github: Export statsd metrics about API requests and token usage
We will need to monitored token usage when scheduling recurring fetches of extrinsic metadata. Metrics on API requests and sleep time themselves are just an extra that may be handy in the future.
Showing
- swh/core/github/pytest_plugin.py 24 additions, 6 deletionsswh/core/github/pytest_plugin.py
- swh/core/github/tests/test_github_utils.py 152 additions, 2 deletionsswh/core/github/tests/test_github_utils.py
- swh/core/github/utils.py 43 additions, 0 deletionsswh/core/github/utils.py
- swh/core/statsd.py 1 addition, 1 deletionswh/core/statsd.py
Please register or sign in to comment