-
Notifications
You must be signed in to change notification settings - Fork 3
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 start param to MTTR endpoints #20
Conversation
5720027
to
fe10842
Compare
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.
Left some initial comments re: timestamps
// TODO: `@` in right spot? | ||
static final String LEAD_TIME_FOR_CHANGE = "avg_over_time(sdp:lead_time:global [%s] @ %s)"; | ||
static final String BY_APP = "avg_over_time(sdp:lead_time:by_app{app=~'.*%s.*'}[%s] @ %s)"; | ||
static final String BY_APP_OFFSET = "avg_over_time(sdp:lead_time:by_app{app=~'.*%1$s.*'}[%2$s] offset %2$s)"; |
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.
@ is missing here
static final String BY_APP_OFFSET = "avg_over_time(sdp:lead_time:by_app{app=~'.*%1$s.*'}[%2$s] offset %2$s)"; | ||
// It should be this, once https://github.com/dora-metrics/pelorus/issues/1088 | ||
// gets resolved | ||
static final String BY_APP_DATA = "sdp:lead_time:by_commit{app=~'.*%s.*'}[%s]"; |
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.
@ also missing here
} | ||
|
||
// #region Change Failure Rate | ||
// TODO: making sure I understand where the @ would go on the below queries | ||
private final String CHANGE_FAILURE_RATE = "(count by (app) (count_over_time(failure_creation_timestamp{app!=\"unknown\"}[%1$s]) or sdp:lead_time:by_app * 0) / count_over_time(sdp:lead_time:by_app [%1$s]))"; |
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.
missing in all of CFR
- log queries - take mandatory "start" parameter - use a more structured argument approach
a78f6ff
to
c109024
Compare
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.
lgtm
Addresses some items in #19