Ver código fonte

feat(alerting): added alert howto text, closes #5784

Torkel Ödegaard 9 anos atrás
pai
commit
9b5a7b5ef6

+ 2 - 0
public/app/features/alerting/alert_tab_ctrl.ts

@@ -21,6 +21,7 @@ export class AlertTabCtrl {
   notifications;
   alertNotifications;
   error: string;
+  appSubUrl: string;
 
   /** @ngInject */
   constructor(private $scope,
@@ -38,6 +39,7 @@ export class AlertTabCtrl {
     this.evalFunctions = alertDef.evalFunctions;
     this.conditionTypes = alertDef.conditionTypes;
     this.severityLevels = alertDef.severityLevels;
+    this.appSubUrl = config.appSubUrl;
   }
 
   $onInit() {

+ 9 - 1
public/app/features/alerting/partials/alert_howto.html

@@ -12,7 +12,15 @@
 
 
 	<div class="modal-content">
-		Find your inner self, deep down you know. Grafana believes in you!
+		<p class="p-a-2 text-center offset-lg-2 col-lg-8">
+			Alerts are added and configured in the <strong>Alert Tab</strong> of any dashboard
+			graph panel, letting you build and visualize an alert using existing queries.
+			<br> <br>
+			To persist you alert rule changes remember to save the dashboard.
+			<br>
+			<br>
+			<a href="{{appSubUrl}}" class="external-link" ng-click="dismiss()">Go to Home Dashboard</a>
+		</p>
 	</div>
 
 </div>