Skip to content

Add small success rate chart to table, misc web tweaks#1628

Merged
rmars merged 6 commits intomasterfrom
rmars/little-success
Sep 12, 2018
Merged

Add small success rate chart to table, misc web tweaks#1628
rmars merged 6 commits intomasterfrom
rmars/little-success

Conversation

@rmars
Copy link

@rmars rmars commented Sep 11, 2018

  • Add a small success rate chart to the metrics tables
  • Improve latency formatting for seconds latencies
  • Rename upstream/downstream to inbound/outbound
  • Make Top table look consistent with rest of tables on page
  • Fix widths of metrics column columns so that tables align

The success rate mini chart is last in the Top table, but near first in the metric table. I felt like it might be good to put it farther away from the other coloured column (Grafana link), but the column order can easily be changed.

Something to think about: the VotePoop endpoint is showing up as grey (0% SR). You'd expect it to be red but because the gauge is also reflecting the actual percent, the coloured part of this is 0, so the red part doesn't show. An alternative is to actually just show a full arc no matter the value of the success rate. We could also colour the rows or text instead of adding this arc.

screen shot 2018-09-11 at 1 51 50 pm
screen shot 2018-09-11 at 2 04 24 pm

Fixes #1598
Fixes #1600
Fixes #1589
Fixes #1610

@rmars rmars added the area/web label Sep 11, 2018
@rmars rmars self-assigned this Sep 11, 2018
- Add a small success rate chart to the metrics tables

- Improve latency formatting for seconds latencies

- Rename upstream/downstream to inbound/outbound

- Make Top table look consistent with rest of tables on page

- Fix widths of metrics column columns so that tables align
@rmars rmars force-pushed the rmars/little-success branch from c23e034 to b0fff85 Compare September 11, 2018 21:56
Copy link
Member

@siggy siggy left a comment

Choose a reason for hiding this comment

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

changes all look great, a couple tioli comments...

  1. some latency values have 3 sig-dig's and some have 1:

screen shot 2018-09-11 at 4 26 46 pm

is it possible to format these values so we always have 3 sig-digs, regardless of unit?

  1. the table columns line up, but there are some cases where the column headers differ between tables, specifically the Authorities table doesn't have a DASH column. is it possible to make the columns in Authorities vertically align with their counterparts in the tables above it?

screen shot 2018-09-11 at 4 27 42 pm

@rmars
Copy link
Author

rmars commented Sep 12, 2018

is it possible to format these values so we always have 3 sig-digs, regardless of unit?

I think we should find the right mix. It'll be jarring to have like... 615µs and 10.3ms... the idea was just so that at the second level, we don't lose a bunch of granularity. But I feel like ms and µs are easier to comprehend at the non-decimal granularity. But if we format all the numbers to be non-decimal, we lose some info at the second display between 1 and 10 seconds (hence this change).

@rmars
Copy link
Author

rmars commented Sep 12, 2018

The Authorities not being aligned would actually be fixed by #1225 so I'm inclined to just leave it as is until we can get to that ticket? Or if we urgently want it to be aligned, I think we should just add the Authorities in Grafana.

Copy link
Contributor

@klingerf klingerf left a comment

Choose a reason for hiding this comment

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

⭐️ Awesome! Just had that one nit about column width, but otherwise looks good to me.

dataIndex: "successRate",
key: "successRateRollup",
className: "numeric",
width: "120px",
Copy link
Contributor

Choose a reason for hiding this comment

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

This width needs to be slightly wider for when the sortable header is present:

image

Testing locally it looks like 130px would work.

Copy link
Author

@rmars rmars Sep 12, 2018

Choose a reason for hiding this comment

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

(note that this applies to the definition in TopEventTable.jsx and not the one in MetricsTable)

@rmars rmars merged commit b49ccce into master Sep 12, 2018
@rmars rmars deleted the rmars/little-success branch September 12, 2018 20:47
zachalbert added a commit to zachalbert/linkerd2 that referenced this pull request Sep 13, 2018
* master:
  Update CHANGES.md for v18.9.1 release (linkerd#1631)
  Cleanly shutdown tap stream to data plane proxies (linkerd#1624)
  Change breadcrumb header to default font in styles.css (linkerd#1633)
  Improve top table to better cope with high RPS traffic (linkerd#1634)
  Add small success rate chart to table, misc web tweaks (linkerd#1628)
  Consolidate the source and destination columns in the Tap and Top tables (linkerd#1620)
  remove extraneous calc function in sidebar.css (linkerd#1632)
  Display more helpful websocket errors (linkerd#1626)
  Add breadcrumb navigation at the top of linkerd dashboard (linkerd#1613)
  Introduce inject check for known sidecars (linkerd#1619)
  Bump Prometheus to v2.4.0, Grafana to 5.2.4 (linkerd#1625)
  Improve performance of tap table by throttling updates (linkerd#1623)
  Add with-source flag to top (linkerd#1614)

Conflicts:
	web/app/css/styles.css
	web/app/js/components/ResourceDetail.jsx
	web/app/js/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants