Grafana Quick Start

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Notes)
 
(未显示1个用户的1个中间版本)
第2行: 第2行:
  
 
Select the dashboards ---> 'Manage dashboard' ---> 'Templating'
 
Select the dashboards ---> 'Manage dashboard' ---> 'Templating'
 +
 +
Type: Query
  
 
<pre>
 
<pre>
$server SHOW TAG VALUES FROM "cpu" WITH KEY = "host"
+
$server SHOW TAG VALUES FROM "cpu" WITH KEY = "host"  
$int eth0,eth1,bond0,bond1
+
 
$path SHOW TAG VALUES FROM "disk" WITH KEY = "path"
 
$path SHOW TAG VALUES FROM "disk" WITH KEY = "path"
 +
</pre>
 +
 +
 +
Type: Custom
 +
 +
<pre>
 +
$int eth0,eth1,bond0,bond1
 
</pre>
 
</pre>
  
 
<br><br>
 
<br><br>
  
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
+
== Plugin ==
 +
 
 +
<source lang=bash>
 +
$ grafana-cli plugins list-remote
 +
$ grafana-cli plugins install <plugin-name>
 +
$ grafana-cli plugins install <plugin-id> <version>
 +
$ grafana-cli plugins ls
 +
$ grafana-cli plugins update-all
 +
$ grafana-cli plugins update <plugin-name>
 +
$ grafana-cli plugins remove <plugin-name>
 +
</source>
 +
 
 +
<br><br><br><br><br><br><br><br><br><br><br><br><br>
 +
<br><br><br><br><br><br><br><br><br><br><br><br><br>

2019年6月3日 (一) 11:00的最后版本

[编辑] 1 Templating

Select the dashboards ---> 'Manage dashboard' ---> 'Templating'

Type: Query

$server	SHOW TAG VALUES FROM "cpu" WITH KEY = "host" 
$path	SHOW TAG VALUES FROM "disk" WITH KEY = "path"


Type: Custom

$int	eth0,eth1,bond0,bond1



[编辑] 2 Plugin

$ grafana-cli plugins list-remote
$ grafana-cli plugins install <plugin-name> 
$ grafana-cli plugins install <plugin-id> <version>
$ grafana-cli plugins ls
$ grafana-cli plugins update-all
$ grafana-cli plugins update <plugin-name>
$ grafana-cli plugins remove <plugin-name>



























个人工具
名字空间

变换
操作
导航
工具箱