Browse Source

Add the `diff` option on the singlestat panel

oliverpool 9 năm trước cách đây
mục cha
commit
80c67267e8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/app/plugins/panel/singlestat/module.ts

+ 1 - 1
public/app/plugins/panel/singlestat/module.ts

@@ -21,7 +21,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
   invalidGaugeRange: boolean;
   panel: any;
   events: any;
-  valueNameOptions: any[] = ['min','max','avg', 'current', 'total', 'name', 'first', 'delta', 'range'];
+  valueNameOptions: any[] = ['min','max','avg', 'current', 'total', 'name', 'first', 'delta', 'diff', 'range'];
 
   // Set and populate defaults
   panelDefaults = {