-
Notifications
You must be signed in to change notification settings - Fork 507
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
Atm monitoring UI #815
Atm monitoring UI #815
Conversation
@th3M1ke please sign your commits. |
5bc11e7
to
deab23c
Compare
Codecov Report
@@ Coverage Diff @@
## master #815 +/- ##
==========================================
+ Coverage 95.31% 95.44% +0.12%
==========================================
Files 231 240 +9
Lines 7103 7458 +355
Branches 1709 1811 +102
==========================================
+ Hits 6770 7118 +348
- Misses 327 334 +7
Partials 6 6
Continue to review full report at Codecov.
|
I tried testing this with @albertteoh's ATM docker-compose today. It worked like charm 🎉 🎉 . Screenshots to get the look and feel. These are from /monitoring endpoint. Great work @th3M1ke 🥳 🍾 |
@rubenvp8510 @yoave23 would you be able to take a look over this PR if you get a chance, please (I'm pretty inexperienced with react)? |
header={<h2 className="ub-m0">Get started with Services Monitoring</h2>} | ||
footer={ | ||
<Button | ||
style={{ backgroundColor: '#199', color: '#fff' }} |
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.
Can we use an style for this? or there is any reason for put this directly on the style attribute?
Small optional comment! overall Looks good! Awesome work! |
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.
looks great 👍
some minor comments inside.
@@ -68,13 +69,22 @@ if (getConfigValue('qualityMetrics.menuEnabled')) { | |||
}); | |||
} | |||
|
|||
if (getConfigValue('monitoring.menuEnabled')) { |
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.
need to document it somewhere
|
||
const props = mapStateToProps(state); | ||
|
||
Date.now = jest.fn(() => 1487076708000); |
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.
please move the date to a constant with a meaningful name
import { ActionFunction, Action } from 'redux-actions'; | ||
// @ts-ignore | ||
import { Field, formValueSelector, reduxForm } from 'redux-form'; | ||
// @ts-ignore |
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.
don't think you need to ignore this one
packages/jaeger-ui/src/components/Monitoring/ServicesView/index.tsx
Outdated
Show resolved
Hide resolved
style={{ fontSize: 14, width: 218 }} | ||
value={this.state.searchOps} | ||
disabled={metrics.operationMetricsLoading === true} | ||
onChange={a => { |
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.
please use something more meaningful than a
endTime: 1632133918915, | ||
lookback: 3600 * 1000, | ||
serviceName: 'serviceName', | ||
// state |
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.
state?
Closing PR just for rerun pipeline |
@th3M1ke, is this ready for re-review? We have a release going out today, but I think it's too late to include this, right? |
Yes, it's ready for re-review, I believe. I got approves from @yoave23 and @rubenvp8510, but they were reset because of a new commit with code coverage increase. Also we plan to review performance this Friday with @albertteoh. |
This is looking great @th3M1ke! The following are just a few things I noticed while playing around with it: The text in the "Impact" column's "info" is wrapping in the middle of words. It would be better to wrap on the word boundaries: How will a user know what percentile the latency column is displaying? I'm assuming it's 95th percentile based on the colour scheme The horizontal alignment for the lookback seems a little off from both the service dropdown and the "Aggregation of..." text. I feel it should align with either one of these, perhaps in line with the service dropdown. I like the thoughtfulness of how the label appears on the side of the graph with the most real estate. A few things I wanted to point out (I can appreciate some of these can be quite tricky to implement, and also a little subjective, and so probably not critical for version 1):
It would be nice if the headers of the service-level and operation-level graphs are consistent: I tried clicking on the "View traces" button but it isn't able to select the Operation because the dropdown isn't populated on initial load, but only when I re-select "redis" again. Not sure if this is an existing bug in Jaeger UI. The service is definitely auto-selected, so I would have the Operations dropdown should be populated too. nit: If I click on the up-arrow and down-arrows of each column, it seems to have mixed behaviours between columns. Also, sometimes down-arrow toggles ascending and descending order, and sometimes it just sticks to descending order. It would be good if there was consistent behaviour across all the columns. nit: If I select 2 days lookback, it shows 48 hours which is correct, but would be nicer if it also shows "2 days" to be consistent with the selected lookback text. It would be good to include the units somewhere, perhaps in the label ( |
Sorry, my bad for the slow turnaround on reviews to miss the release cut-off. Probably too late to make it for today's release. |
a234513
to
0942781
Compare
EDIT: I've clarified what I meant by inlining suggestions in code. Thanks @th3M1ke! I have a few comments, but I think we can discuss/address them in a follow-up PR if it's too much effort to address here.
It looks like the percentile labels are still in ascending order. |
Please rebase and address code coverage issues. |
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.
Thought it would be clearer to enter my suggestions directly inline to the code.
packages/jaeger-ui/src/components/Monitoring/ServicesView/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/operationDetailsTable/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/operationDetailsTable/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/operationDetailsTable/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/serviceGraph.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/Monitoring/ServicesView/serviceGraph.tsx
Outdated
Show resolved
Hide resolved
9a86bb8
to
d471027
Compare
CI jobs seem stuck. Closing and reopening PR to re-trigger build. |
12ae5fd
to
22fd58c
Compare
Reopened PR to restart stuck build pipeline. |
784db4c
to
0f52a3b
Compare
d403411
to
79caab0
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.
Good catch, @albertteoh ! I've checked, but I don't know why I did not received it from jaeger-query... Request to get data is GET Is it correct? |
72bbc7f
to
63c7922
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.
Is it correct?
Yeah, looks correct to me, it could be a bug on jaeger-query's side.
I've created a ticket for myself to investigate: jaegertracing/jaeger#3392
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io>
63c7922
to
a041529
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
Which problem is this PR solving?
Short description of the changes