Commit 5c9810fb by Torkel Ödegaard

docs: added in app docs & links to annotation docs

parent 2479ad26
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
<li class="gf-tabs-item" ng-show="ctrl.mode === 'new'"> <li class="gf-tabs-item" ng-show="ctrl.mode === 'new'">
<span class="active gf-tabs-link">New Query</span> <span class="active gf-tabs-link">New Query</span>
</li> </li>
<li class="gf-tabs-item" >
<a class="gf-tabs-link" ng-click="ctrl.mode = 'help';" ng-class="{active: ctrl.mode === 'help'}">
Help
</a>
</li>
</ul> </ul>
<button class="tabbed-view-close-btn" ng-click="dismiss();"> <button class="tabbed-view-close-btn" ng-click="dismiss();">
...@@ -26,6 +32,21 @@ ...@@ -26,6 +32,21 @@
</div> </div>
<div class="tabbed-view-body"> <div class="tabbed-view-body">
<div ng-show="ctrl.mode === 'help'">
<div class="grafana-info-box col-lg-8">
<h5>What are Annotations?</h5>
<p>
Annotations provide a way to integrate event data into your graphs. They are visualized as vertical lines and icons
on all graph panels. When you hover over an annotation icon you can get title, tags, and text information for the event.
In the <i>Queries</i> tab you can add queries that return annotation events.
<br>
<br>
Checkout the <a class="external-link" target="_blank" href="http://docs.grafana.org/reference/annotations/">Annotations documentation</a> for more information.
</p>
</div>
</div>
<div class="editor-row row" ng-if="ctrl.mode === 'list'"> <div class="editor-row row" ng-if="ctrl.mode === 'list'">
<div ng-if="ctrl.annotations.length === 0"> <div ng-if="ctrl.annotations.length === 0">
<em>No annotation queries defined</em> <em>No annotation queries defined</em>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
border-radius: 4px; border-radius: 4px;
h5 { h5 {
margin-top: 5px; margin-bottom: $spacer;
} }
ul { ul {
padding-left: $spacer; padding-left: $spacer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment