Commit Graph

17 Commits

Author SHA1 Message Date
Roland Schilter
f8fa524617 Get rid of metricsGraphURL singleton
Fixes #2740
2017-08-14 17:38:57 +01:00
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
69c4430d58 Remove grouped containers since queries are incorrect 2017-08-14 15:04:50 +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
283edfed12 Replace templates with simple string replacement 2017-08-11 16:45:14 +01:00
Roland Schilter
3784174460 Fix query typo 2017-08-11 16:45:13 +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
b8c75071fe Switch to migrated rules in kube-state-metrics 2017-08-11 16:45:13 +01:00
Roland Schilter
a7d8d9b233 Update Deployment and DaemonSet queries 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
fa69c2078b Fix linting errors 2017-08-11 16:45:13 +01:00
Roland Schilter
86030a9b86 Expand on the prom query source in comments 2017-08-11 16:45:13 +01:00
Roland Schilter
9dcdc65e66 Improve comments; fix missing links w/o metrics 2017-08-11 16:45:13 +01:00
Roland Schilter
c3118d0397 Use ugorji over core json 2017-08-11 16:45:13 +01:00
Roland Schilter
d0527d28df Fix linting, cleanup, and add example to flag 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