Grafana Quick Start
来自Jack's Lab
(版本间的差异)
(以“== Notes == <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>”为内容创建页面) |
|||
(未显示1个用户的2个中间版本) | |||
第1行: | 第1行: | ||
− | == | + | == Templating == |
+ | |||
+ | Select the dashboards ---> 'Manage dashboard' ---> 'Templating' | ||
+ | |||
+ | Type: Query | ||
+ | |||
+ | <pre> | ||
+ | $server SHOW TAG VALUES FROM "cpu" WITH KEY = "host" | ||
+ | $path SHOW TAG VALUES FROM "disk" WITH KEY = "path" | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | Type: Custom | ||
+ | |||
+ | <pre> | ||
+ | $int eth0,eth1,bond0,bond1 | ||
+ | </pre> | ||
<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>