|
@@ -1,4 +1,4 @@
|
|
|
-<div class="editor-row" style="margin-top: 10px;">
|
|
|
|
|
|
|
+<div class="editor-row">
|
|
|
|
|
|
|
|
<div ng-repeat="target in panel.targets"
|
|
<div ng-repeat="target in panel.targets"
|
|
|
class="grafana-target"
|
|
class="grafana-target"
|
|
@@ -30,11 +30,9 @@
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
- <ul class="grafana-target-controls-left">
|
|
|
|
|
|
|
+ <ul class="grafana-segment-list">
|
|
|
<li>
|
|
<li>
|
|
|
- <a class="grafana-target-segment"
|
|
|
|
|
- ng-click="target.hide = !target.hide; get_data();"
|
|
|
|
|
- role="menuitem">
|
|
|
|
|
|
|
+ <a class="grafana-target-segment" ng-click="target.hide = !target.hide; get_data();" role="menuitem">
|
|
|
<i class="icon-eye-open"></i>
|
|
<i class="icon-eye-open"></i>
|
|
|
</a>
|
|
</a>
|
|
|
</li>
|
|
</li>
|
|
@@ -53,13 +51,12 @@
|
|
|
ng-model-onblur
|
|
ng-model-onblur
|
|
|
ng-blur="get_data()">
|
|
ng-blur="get_data()">
|
|
|
</li>
|
|
</li>
|
|
|
-
|
|
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Query editor mode -->
|
|
<!-- Query editor mode -->
|
|
|
<ul class="grafana-segment-list" role="menu" ng-hide="target.rawQuery">
|
|
<ul class="grafana-segment-list" role="menu" ng-hide="target.rawQuery">
|
|
|
<li class="grafana-target-segment">
|
|
<li class="grafana-target-segment">
|
|
|
- from series
|
|
|
|
|
|
|
+ series
|
|
|
</li>
|
|
</li>
|
|
|
<li>
|
|
<li>
|
|
|
<input type="text"
|
|
<input type="text"
|
|
@@ -104,47 +101,60 @@
|
|
|
|
|
|
|
|
<!-- Query editor mode -->
|
|
<!-- Query editor mode -->
|
|
|
<ul class="grafana-segment-list" role="menu" ng-hide="target.rawQuery">
|
|
<ul class="grafana-segment-list" role="menu" ng-hide="target.rawQuery">
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <i class="icon-eye-open invisible"></i>
|
|
|
|
|
+ </li>
|
|
|
<li class="grafana-target-segment">
|
|
<li class="grafana-target-segment">
|
|
|
select
|
|
select
|
|
|
</li>
|
|
</li>
|
|
|
<li class="dropdown">
|
|
<li class="dropdown">
|
|
|
- <span influxdb-func-editor class="grafana-target-segment grafana-target-function">
|
|
|
|
|
|
|
+ <span influxdb-func-editor class="grafana-target-segment">
|
|
|
</span>
|
|
</span>
|
|
|
</li>
|
|
</li>
|
|
|
- <li>
|
|
|
|
|
- <a class="grafana-target-segment" ng-click="target.condition_filter = !target.condition_filter; get_data();"
|
|
|
|
|
- bs-tooltip="'Add a where clause'" role="menuitem" data-placement="right">
|
|
|
|
|
- <i class="icon-filter"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
- </li>
|
|
|
|
|
|
|
|
|
|
- <li ng-show="target.condition_filter">
|
|
|
|
|
- <input type="text" class="input-large grafana-target-text-input" ng-model="target.condition_expression"
|
|
|
|
|
- spellcheck='false' placeholder="column ~= value" ng-blur="get_data()">
|
|
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ where
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <input type="text" class="input-medium grafana-target-text-input" ng-model="target.condition"
|
|
|
|
|
+ bs-tooltip="'Add a where clause'" data-placement="right" spellcheck='false' placeholder="column ~= value" ng-blur="get_data()">
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
<li class="grafana-target-segment">
|
|
<li class="grafana-target-segment">
|
|
|
group by time
|
|
group by time
|
|
|
</li>
|
|
</li>
|
|
|
-
|
|
|
|
|
<li>
|
|
<li>
|
|
|
<input type="text" class="input-mini grafana-target-text-input" ng-model="target.interval"
|
|
<input type="text" class="input-mini grafana-target-text-input" ng-model="target.interval"
|
|
|
spellcheck='false' placeholder="{{interval}}" data-placement="right"
|
|
spellcheck='false' placeholder="{{interval}}" data-placement="right"
|
|
|
bs-tooltip="'Leave blank for auto handling based on time range and panel width'"
|
|
bs-tooltip="'Leave blank for auto handling based on time range and panel width'"
|
|
|
ng-model-onblur ng-change="get_data()" >
|
|
ng-model-onblur ng-change="get_data()" >
|
|
|
</li>
|
|
</li>
|
|
|
- <li>
|
|
|
|
|
- <a class="grafana-target-segment" ng-click="target.groupby_field_add = !target.groupby_field_add; get_data();"
|
|
|
|
|
- bs-tooltip="'Add a group by column'" role="menuitem" data-placement="right">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
<i class="icon-plus"></i>
|
|
<i class="icon-plus"></i>
|
|
|
- </a>
|
|
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- <li ng-show="target.groupby_field_add">
|
|
|
|
|
- <input type="text" class="input-small grafana-target-text-input" ng-model="target.groupby_field"
|
|
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <input type="text" class="input-small grafana-target-text-input" ng-model="target.groupby_field" bs-tooltip="'Add a group by column or leave blank'"
|
|
|
placeholder="column" spellcheck="false" bs-typeahead="listColumns" data-min-length=0 ng-blur="get_data()">
|
|
placeholder="column" spellcheck="false" bs-typeahead="listColumns" data-min-length=0 ng-blur="get_data()">
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
+ <li class="dropdown">
|
|
|
|
|
+ <a class="grafana-target-segment pointer" data-toggle="dropdown" bs-tooltip="'Insert missing values, important when stacking'" data-placement="right">
|
|
|
|
|
+ <span ng-show="target.fill">
|
|
|
|
|
+ fill ({{target.fill}})
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span ng-show="!target.fill">
|
|
|
|
|
+ no fill
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <ul class="dropdown-menu">
|
|
|
|
|
+ <li><a ng-click="target.fill = ''">no fill</a></li>
|
|
|
|
|
+ <li><a ng-click="target.fill = 'null'">fill (null)</a></li>
|
|
|
|
|
+ <li><a ng-click="target.fill = '0'">fill (0)</a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </li>
|
|
|
|
|
+
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
@@ -152,20 +162,93 @@
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+<section class="grafana-metric-options">
|
|
|
|
|
+ <div class="grafana-target">
|
|
|
|
|
+ <div class="grafana-target-inner">
|
|
|
|
|
+ <ul class="grafana-segment-list">
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <i class="icon-cogs"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ group by time
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <input type="text" class="input-medium grafana-target-text-input" ng-model="panel.interval" ng-blur="get_data();"
|
|
|
|
|
+ spellcheck='false' placeholder="example: >10s">
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <i class="icon-question-sign" bs-tooltip="'Set a low limit by having a greater sign: example: >60s'" data-placement="right"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <div class="clearfix"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="grafana-target-inner">
|
|
|
|
|
+ <ul class="grafana-segment-list">
|
|
|
|
|
+ <li class="grafana-target-segment grafana-target-segment-icon">
|
|
|
|
|
+ <i class="icon-info-sign"></i>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <a ng-click="toggleEditorHelp(1);" bs-tooltip="'click to show helpful info'" data-placement="bottom">
|
|
|
|
|
+ alias patterns
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <a ng-click="toggleEditorHelp(2)" bs-tooltip="'click to show helpful info'" data-placement="bottom">
|
|
|
|
|
+ stacking & and fill
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="grafana-target-segment">
|
|
|
|
|
+ <a ng-click="toggleEditorHelp(3)" bs-tooltip="'click to show helpful info'" data-placement="bottom">
|
|
|
|
|
+ group by time
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <div class="clearfix"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</section>
|
|
|
|
|
+
|
|
|
<div class="editor-row">
|
|
<div class="editor-row">
|
|
|
- <div class="pull-left metrics-editor-help" style="margin-top: 30px;">
|
|
|
|
|
- <div class="span6">
|
|
|
|
|
- <span class="pointer">
|
|
|
|
|
- <i class="icon-question-sign"></i> alias patterns:
|
|
|
|
|
- </span>
|
|
|
|
|
- <ul class="hide">
|
|
|
|
|
- <li>$s = series name</li>
|
|
|
|
|
- <li>$g = group by</li>
|
|
|
|
|
- <li>$[0-9] part of series name for series names seperated by dots.</li>
|
|
|
|
|
- <ul>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="pull-left" style="margin-top: 30px;">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="span6" ng-if="editorHelpIndex === 1">
|
|
|
|
|
+ Alias patterns:
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <li>$s = series name</li>
|
|
|
|
|
+ <li>$g = group by</li>
|
|
|
|
|
+ <li>$[0-9] part of series name for series names seperated by dots.</li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="span6" ng-if="editorHelpIndex === 2">
|
|
|
|
|
+ Stacking and fill:
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <li>When stacking is enabled it important that points align</li>
|
|
|
|
|
+ <li>If there are missing points for one series it can cause gaps or missing bars</li>
|
|
|
|
|
+ <li>You must use fill(0), and select a group by time low limit</li>
|
|
|
|
|
+ <li>Use the group by time option below your queries and specify for example >10s if your metrics are written every 10 seconds</li>
|
|
|
|
|
+ <li>This will insert zeros for series that are missing measurements and will make stacking work properly</li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="span6" ng-if="editorHelpIndex === 3">
|
|
|
|
|
+ Group by time:
|
|
|
|
|
+ <ul>
|
|
|
|
|
+ <li>Group by time is important, otherwise the query could return many thousands of datapoints that will slow down Grafana</li>
|
|
|
|
|
+ <li>Leave the group by time field empty for each query and it will be calculated based on time range and pixel width of the graph</li>
|
|
|
|
|
+ <li>If you use fill(0) or fill(null) set a low limit for the auto group by time interval</li>
|
|
|
|
|
+ <li>The low limit can only be set in the group by time option below your queries</li>
|
|
|
|
|
+ <li>You set a low limit by adding a greater sign before the interval</li>
|
|
|
|
|
+ <li>Example: >60s if you write metrics to InfluxDB every 60 seconds</li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+
|