-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metrics about Matrix API events #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write a wrapper function as the current code includes a lot of repetition.
I think this is required. Could just build the wrapper into request
itself (so that the current request
is renamed to _request
or something)
Because of the difference in implementation, I opened the competing PR #68 to address the feedback for this PR. |
Closing in favour of #68 |
This adds the following Prometheus metrics:
bridge_matrix_api_calls
Counter: Number of API calls madebridge_matrix_api_calls_failed
Counter: Number of API calls which failedmatrix_request_seconds
Histogram: Duration in seconds of each API callThe names and types have been chosen to match those of https://github.com/matrix-org/matrix-appservice-bridge.
Incomplete list of things which could be improved
events.py
.