-
Notifications
You must be signed in to change notification settings - Fork 60
graph-builder: instrument and expose graph metrics #72
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
Conversation
This adds an initial status service to serve the `/metrics` endpoint. It is initially hardcoded to bind to 0.0.0.0:9080 (pending configuration rework).
steveej
left a comment
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.
- Some suggestions around naming of the metrics.
- For the initial metrics we should also have an error counter for failed requests to the upstream.
- Optionally you could explore counting plugin errors, but I'm fine deferring that
|
Ack on the renaming part. |
|
I got the feedback I was looking for (thanks @mxinden!), so I also added metrics for total and failed scrapes. |
|
@steveej I've amended them to |
steveej
left a comment
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.
Just one mismatching description to fix before this is good to go 🙌
This adds some initial instrumentation to record basic metrics about incoming requests, total and failed scrapes, fetched releases, and nodes recorded in the processed DAG.
|
@steveej good catch! Amended. |
|
Thanks! /lgtm Unsolicited reminder: please don't forget to make this address and port configurable in #69. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lucab, steveeJ The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
mxinden
left a comment
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.
A bit late, but this looks good to me. Happy to see more components instrumented!
This adds a status service to serve graph-builder
/metricsendpoint.It is initially hardcoded to bind to
0.0.0.0:9080(pending configuration rework).It also adds initial instrumentation to record basic metrics about incoming
requests, total and failed scrapes, fetched releases, and nodes recorded in the
processed DAG.
Ref: https://jira.coreos.com/browse/CORS-1015
/cc @steveej