From 56c32963d6820cd5c96dcfc2eac00c5c40639744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 6 Oct 2018 12:09:30 -0700 Subject: [PATCH] ux: minor update to look of stackdriver query help (cherry picked from commit 3fa83d2755ec44ad48cccd9c2bfc91d2280f3dd8) --- public/app/features/teams/TeamList.tsx | 2 +- .../__snapshots__/TeamList.test.tsx.snap | 5 +-- .../stackdriver/partials/query.editor.html | 36 ++++++++++++------- public/sass/_variables.dark.scss | 4 +-- 4 files changed, 28 insertions(+), 19 deletions(-) diff --git a/public/app/features/teams/TeamList.tsx b/public/app/features/teams/TeamList.tsx index 985d73d9a52..7b153746f9f 100644 --- a/public/app/features/teams/TeamList.tsx +++ b/public/app/features/teams/TeamList.tsx @@ -103,7 +103,7 @@ export class TeamList extends PureComponent {
- New team + New team
diff --git a/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap b/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap index 45d0f78126e..7cf5951dba3 100644 --- a/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap +++ b/public/app/features/teams/__snapshots__/TeamList.test.tsx.snap @@ -62,10 +62,7 @@ exports[`Render should render teams table 1`] = ` className="btn btn-success" href="org/teams/new" > - - New team + New team
{{ctrl.lastQueryMeta.rawQueryString}}
-
-
Alias Patterns
Format the legend keys any way you want by using alias patterns. +
+
Alias Patterns
-{{metric.name}} - {{metric.label.instance_name}} + Format the legend keys any way you want by using alias patterns.

-cpu/usage_time - server1-europe-west-1 + Example: {{metric.name}} - {{metric.label.instance_name}}
+ Result:   cpu/usage_time - server1-europe-west-1

- -{{metric.type}} = metric type e.g. compute.googleapis.com/instance/cpu/usage_time -{{metric.name}} = name part of metric e.g. instance/cpu/usage_time -{{metric.service}} = service part of metric e.g. compute - -{{metric.label.label_name}} = Metric label metadata e.g. metric.label.instance_name -{{resource.label.label_name}} = Resource label metadata e.g. resource.label.zone -
+ Patterns
+
    +
  • + {{metric.type}} = metric type e.g. compute.googleapis.com/instance/cpu/usage_time +
  • +
  • + {{metric.name}} = name part of metric e.g. instance/cpu/usage_time +
  • +
  • + {{metric.service}} = service part of metric e.g. compute +
  • +
  • + {{metric.label.label_name}} = Metric label metadata e.g. + metric.label.instance_name +
  • +
  • + {{resource.label.label_name}} = Resource label metadata e.g. resource.label.zone +
  • +
{{ctrl.lastQueryError}}
diff --git a/public/sass/_variables.dark.scss b/public/sass/_variables.dark.scss index 01590ace585..ae52fbc5ab5 100644 --- a/public/sass/_variables.dark.scss +++ b/public/sass/_variables.dark.scss @@ -115,8 +115,8 @@ $tight-form-func-bg: #333334; $tight-form-func-highlight-bg: #444445; $modal-backdrop-bg: #353c42; -$code-tag-bg: $gray-1; -$code-tag-border: lighten($code-tag-bg, 2%); +$code-tag-bg: $dark-1; +$code-tag-border: $dark-4; // cards $card-background: linear-gradient(135deg, #2f2f32, #262628);