Skip to content
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

Monitor Tab - New look for empty state + make empty state configurable #916

Merged
merged 18 commits into from
Apr 3, 2022

Conversation

nofar9792
Copy link
Contributor

@nofar9792 nofar9792 commented Mar 22, 2022

Which problem is this PR solving?

Resolves #907

Short description of the changes

Add configuration + default configuration.
Use the config in the monitor empty state.
Furthermore, show bar in case the user hasn't sent metrics yet with link to the documentation

before:
image

after:
image

before:
image

after: (with bar)
image

nofar9792 added 4 commits March 20, 2022 18:22
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #916 (fd39826) into main (80a7502) will decrease coverage by 0.00%.
The diff coverage is 89.28%.

@@            Coverage Diff             @@
##             main     #916      +/-   ##
==========================================
- Coverage   95.33%   95.32%   -0.01%     
==========================================
  Files         240      240              
  Lines        7502     7510       +8     
  Branches     1871     1880       +9     
==========================================
+ Hits         7152     7159       +7     
- Misses        344      345       +1     
  Partials        6        6              
Impacted Files Coverage Δ
...nitor/ServicesView/operationDetailsTable/index.tsx 100.00% <ø> (ø)
...ackages/jaeger-ui/src/constants/default-config.tsx 66.66% <0.00%> (-33.34%) ⬇️
...ger-ui/src/components/Monitor/EmptyState/index.tsx 92.85% <90.00%> (-7.15%) ⬇️
...r-ui/src/components/Monitor/ServicesView/index.tsx 97.05% <94.11%> (+0.02%) ⬆️
packages/jaeger-ui/src/components/App/TopNav.tsx 94.44% <0.00%> (+2.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80a7502...fd39826. Read the comment docs.

nofar9792 added 3 commits March 22, 2022 14:41
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@nofar9792 nofar9792 marked this pull request as draft March 23, 2022 09:30
@nofar9792 nofar9792 marked this pull request as ready for review March 24, 2022 15:23
@nofar9792
Copy link
Contributor Author

@yuribit @albertteoh WDYT?

@nofar9792
Copy link
Contributor Author

@yuribit @albertteoh WDYT?

i meant @yurishkuro

@yurishkuro
Copy link
Member

looks great to me, but I don't have the knowledge to review React code.

Copy link
Contributor

@albertteoh albertteoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @nofar9792! I've added a few comments to get yours and others' thoughts on wording and naming.

Similar to Yuri, I can't comment much on the React code due to lack of knowledge, so trust that @AlonMiz and @galangel had a good look over it.

'Service Performance Monitoring works in conjunction with a Prometheus compatible time series database. The metrics are aggregated from your tracing data through a one-time configuration. ',
button: {
text: 'Read the Documentation',
onClick: () => window.open('https://www.jaegertracing.io/docs/latest/frontend-ui/'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest referencing this URL: https://www.jaegertracing.io/docs/latest/atm/.

It's yet to be released, but should be available in the coming documentation release. It's currently viewable in: https://www.jaegertracing.io/docs/next-release/atm/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing. BTW we get 404 now
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW we get 404 now

That's fine, because that page hasn't been released yet, but should be released within 2 weeks, which is when Jaeger UI will also be released.

monitor: {
menuEnabled: true,
emptyState: {
mainTitle: 'Get started with Service Monitoring',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the term "Service Performance Monitoring" is used below while it's "Service Monitoring" here; should we make it consistent?

Perhaps for broader discussion among stakeholders, but what do folks think about renaming "ATM"/"Aggregated Trace Metrics" in https://www.jaegertracing.io/docs/next-release/atm/ to "Service Performance Monitoring" to be consistent with the UI, assuming the latter is the preferred name for this feature? Happy to make the change in docs if so, as I'm not particularly attached to "ATM" name.

What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, I think SPM is a better term that describes the business function, where as ATM describes the implementation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do that, let's do a cleanup in the docs too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing to Service Performance Monitoring

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do a cleanup in the docs too.

@yurishkuro, re: cleaning up the docs, besides renaming ATM in docs, were you referring to this? jaegertracing/documentation#541

Or did you have something else in mind?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not only that one, Albert already added documentation using the term ATM, so we'd want to change that.

packages/jaeger-ui/src/constants/default-config.tsx Outdated Show resolved Hide resolved
packages/jaeger-ui/src/constants/default-config.tsx Outdated Show resolved Hide resolved
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@nofar9792
Copy link
Contributor Author

nofar9792 commented Mar 27, 2022

@albertteoh @yurishkuro
I fixed everything
I'm waiting for your approval
after all changes:
image

nofar9792 added 2 commits March 27, 2022 16:18
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@nofar9792
Copy link
Contributor Author

i added support in configurable alert type. we will be able to change the alert in the empty state page:
image
image

Signed-off-by: nofar9792 <nofar.cohen@logz.io>
albertteoh
albertteoh previously approved these changes Mar 28, 2022
Copy link
Contributor

@albertteoh albertteoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just that we should replace ATM with SPM, but we could do this in another PR.

'Service Performance Monitoring aggregates tracing data into RED metrics through a one-time configuration and visualizes these metrics through service and operation level dashboards.',
button: {
text: 'Read the Documentation',
onClick: () => window.open('https://www.jaegertracing.io/docs/latest/atm/'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, jaegertracing/documentation#567, so the URL will change to https://www.jaegertracing.io/docs/latest/spm/.

Alternatively, we can make this change in another PR, as I noticed there are other references to ATM here like MonitorATMEmptyState.

Apologies for the back and forth!

Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@nofar9792
Copy link
Contributor Author

@yurishkuro ping..?

@nofar9792
Copy link
Contributor Author

@yurishkuro ?

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • please update the screenshots to reflect later changes
  • still need someone with UI/React experience to review this code

packages/jaeger-ui/src/constants/default-config.tsx Outdated Show resolved Hide resolved
packages/jaeger-ui/src/constants/default-config.tsx Outdated Show resolved Hide resolved
packages/jaeger-ui/src/constants/default-config.tsx Outdated Show resolved Hide resolved
nofar9792 and others added 6 commits April 3, 2022 10:49
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: nofar9792 <nofar.cohen@logz.io>
@nofar9792
Copy link
Contributor Author

  • please update the screenshots to reflect later changes
  • still need someone with UI/React experience to review this code

@yurishkuro
Screenshots have been updated
who is going to review my code? @AlonMiz and @galangel already did

@yurishkuro yurishkuro merged commit e533b48 into jaegertracing:main Apr 3, 2022
@nofar9792 nofar9792 deleted the empty-state-configurable branch April 3, 2022 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New look for monitor tab empty state + make page configurable
5 participants