Commit Graph

7 Commits

Author SHA1 Message Date
Roland Schilter
c1562ef28f Revert "Revert "Avoid global by passing metricsGraphURL down""
This reverts commit 4e738016969d66bc7b1951f1d63f865f76a20bb8.
2017-08-14 17:38:57 +01:00
Roland Schilter
bf0bc41b36 Use percentage and MB for CPU/Memory urls
And more DRY.
2017-08-11 16:45:14 +01:00
Roland Schilter
b2f4eeb4e6 Revert "Avoid global by passing metricsGraphURL down"
This reverts commit 1a002880ed38cbb8da73e41954513d7144b362c4.
2017-08-11 16:45:13 +01:00
Roland Schilter
8188b7aed2 Append links directly to metrics
The initial idea was to keep it separate since the unattached
links were also to be displayed distinctively from the metrics.
With the new design, unattached links are rendered in the same
list as metrics with attached links.

Therefore, we treat unattached metric links as an empty metric.
2017-08-11 16:45:13 +01:00
Roland Schilter
f21cf472cc Avoid global by passing metricsGraphURL down 2017-08-11 16:45:13 +01:00
Roland Schilter
3ddc6c866f Remove unnecessary fixture dependency of tests 2017-08-11 16:45:13 +01:00
Roland Schilter
702220f2ce Link scope-ui graphs clickable to prometheus queries
scope-app:
- Adds `-app.metrics-graph` cli flag for configuring the base url to
  use for graph links; supports `:orgID` and `:query` placeholders
- Renders `metric_links` in node detail API response

scope-ui:
- Extends `<CloudFeature />` with option `alwaysShow` and adds
  boolean `isCloud` property
- Links metric graphs in the ui's node details view for all k8s
  toplogies; or displays placeholder graph if no metrics available
2017-08-11 16:45:13 +01:00