Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3aa1cb01
Commit
3aa1cb01
authored
Dec 06, 2017
by
Patrick O'Carroll
Committed by
Torkel Ödegaard
Dec 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tooltip, fixes #10092 (#10097)
* added tooltip, fixes #10092 * fixed code formatting
parent
bbc8aa05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
56 deletions
+53
-56
public/app/plugins/datasource/prometheus/partials/query.editor.html
+53
-56
No files found.
public/app/plugins/datasource/prometheus/partials/query.editor.html
View file @
3aa1cb01
<query-editor-row
query-ctrl=
"ctrl"
can-collapse=
"true"
has-text-edit-mode=
"false"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<code-editor
content=
"ctrl.target.expr"
datasource=
"ctrl.datasource"
on-change=
"ctrl.refreshMetricData
()"
get-completer=
"ctrl.getCompleter()"
data-mode=
"prometheus"
code-editor-focus=
"ctrl.isLastQuery"
>
</code-editor>
</div>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-form--grow"
>
<code-editor
content=
"ctrl.target.expr"
datasource=
"ctrl.datasource"
on-change=
"ctrl.refreshMetricData()"
get-completer=
"ctrl.getCompleter
()"
data-mode=
"prometheus"
code-editor-focus=
"ctrl.isLastQuery"
>
</code-editor>
</div>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form max-width-26"
>
<label
class=
"gf-form-label width-8"
>
Legend format
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.legendFormat"
spellcheck=
'false'
placeholder=
"legend format"
data-min-length=
0
data-items=
1000
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
>
</input>
</div>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form max-width-26"
>
<label
class=
"gf-form-label width-8"
>
Legend format
</label>
<input
type=
"text"
class=
"gf-form-input"
ng-model=
"ctrl.target.legendFormat"
spellcheck=
'false'
placeholder=
"legend format"
data-min-length=
0
data-items=
1000
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
>
</input>
<info-popover
mode=
"right-absolute"
>
Controls the name of the time series, using name or pattern. For example {{hostname}} will be replaced with label value for
the label hostname.
</info-popover>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-6"
>
Min step
</label>
<input
type=
"text"
class=
"gf-form-input width-8"
ng-model=
"ctrl.target.interval"
data-placement=
"right"
spellcheck=
'false'
placeholder=
"{{ctrl.panelCtrl.interval}}"
data-min-length=
0
data-items=
100
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
/>
<info-popover
mode=
"right-absolute"
>
Leave blank for auto handling based on time range and panel width
</info-popover>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-6"
>
Min step
</label>
<input
type=
"text"
class=
"gf-form-input width-8"
ng-model=
"ctrl.target.interval"
data-placement=
"right"
spellcheck=
'false'
placeholder=
"{{ctrl.panelCtrl.interval}}"
data-min-length=
0
data-items=
100
ng-model-onblur
ng-change=
"ctrl.refreshMetricData()"
/>
<info-popover
mode=
"right-absolute"
>
Leave blank for auto handling based on time range and panel width
</info-popover>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
Resolution
</label>
<div
class=
"gf-form-select-wrapper max-width-15"
>
<select
ng-model=
"ctrl.target.intervalFactor"
class=
"gf-form-input"
ng-options=
"r.factor as r.label for r in ctrl.resolutions"
ng-change=
"ctrl.refreshMetricData()"
>
</select>
</div>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-6"
>
Format as
</label>
<div
class=
"gf-form-select-wrapper width-8"
>
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"ctrl.target.format"
ng-options=
"f.value as f.text for f in ctrl.formats"
ng-change=
"ctrl.refresh()"
></select>
</div>
<gf-form-switch
class=
"gf-form"
label=
"Instant"
label-class=
"width-5"
checked=
"ctrl.target.instant"
on-change=
"ctrl.refresh()"
>
</gf-form-switch>
<label
class=
"gf-form-label"
>
<a
href=
"{{ctrl.linkToPrometheus}}"
target=
"_blank"
bs-tooltip=
"'Link to Graph in Prometheus'"
>
<i
class=
"fa fa-share-square-o"
></i>
</a>
</label>
</div>
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form-label gf-form-label--grow"
></div>
</div>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label"
>
Resolution
</label>
<div
class=
"gf-form-select-wrapper max-width-15"
>
<select
ng-model=
"ctrl.target.intervalFactor"
class=
"gf-form-input"
ng-options=
"r.factor as r.label for r in ctrl.resolutions"
ng-change=
"ctrl.refreshMetricData()"
>
</select>
</div>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-6"
>
Format as
</label>
<div
class=
"gf-form-select-wrapper width-8"
>
<select
class=
"gf-form-input gf-size-auto"
ng-model=
"ctrl.target.format"
ng-options=
"f.value as f.text for f in ctrl.formats"
ng-change=
"ctrl.refresh()"
></select>
</div>
<gf-form-switch
class=
"gf-form"
label=
"Instant"
label-class=
"width-5"
checked=
"ctrl.target.instant"
on-change=
"ctrl.refresh()"
>
</gf-form-switch>
<label
class=
"gf-form-label"
>
<a
href=
"{{ctrl.linkToPrometheus}}"
target=
"_blank"
bs-tooltip=
"'Link to Graph in Prometheus'"
>
<i
class=
"fa fa-share-square-o"
></i>
</a>
</label>
</div>
<div
class=
"gf-form gf-form--grow"
>
<div
class=
"gf-form-label gf-form-label--grow"
></div>
</div>
</div>
</query-editor-row>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment