Grafana安装配置介绍
一、Grafana介绍
Grafana是一个可视化面板(Dashboard),有着非常漂亮的图表和布局展示,功能齐全的度量仪表盘和图形编辑器,支持Graphite、zabbix、InfluxDB、Prometheus和OpenTSDB作为数据源。Grafana主要特性:灵活丰富的图形化选项;可以混合多种风格;支持白天和夜间模式;多个数据源。
二、安装Grafana
CentOS系列使用YUM安装
|
1
2
|
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-1.x86_64.rpm
$ sudo yum localinstall grafana-4.2.0-1.x86_64.rpm
|
或者
|
1
2
|
$ yum install initscripts fontconfig
$ rpm -Uvh grafana-3.1.1-1470047149.x86_64.rpm
|
安装文件
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# 二进制程序文件
/usr/sbin/grafana-server
# init.d脚本
/etc/init.d/grafana-server
# 安装默认环境变量文件
/etc/sysconfig/grafana-server
# 配置文件
/etc/grafana/grafana.ini
# systemd服务名称
grafana-server.service
# 日志文件
/var/log/grafana/grafana.log
# 默认sqlite3数据库
/var/lib/grafana/grafana.db
|
Sysv方式启动Grafana
|
1
2
|
$ service grafana-server start
$ chkconfig --add grafana-server
|
Systemd方式启动Grafana
|
1
2
3
|
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
|
启动Granfa之后,进程名称为grafana-server。将会默认使用grafana用户和组运行Granfa进程。默认会开启HTTP的3000端口。启动服务之后直接直接在浏览器访问http://IP:3000就会出现如下界面,默认账号和用户名为admin/admin,在/etc/grafana/grafana.ini配置文件中可修改。

在/usr/share/grafana/public/app/plugins/datasource/目录下存放着Grafana默认支持的数据源,有如下数据源。
|
1
2
3
4
5
6
7
8
9
10
|
[root@localhost ~]# ll /usr/share/grafana/public/app/plugins/datasource/
drwxr-xr-x. 5 root root 4096 Aug 26 15:16 cloudwatch
drwxr-xr-x. 5 root root 4096 Aug 26 15:16 elasticsearch
drwxr-xr-x. 3 root root 4096 Aug 26 15:16 grafana
drwxr-xr-x. 3 root root 4096 Aug 26 15:16 grafana-live
drwxr-xr-x. 6 root root 4096 Aug 26 15:16 graphite
drwxr-xr-x. 5 root root 4096 Aug 26 15:16 influxdb
drwxr-xr-x. 2 root root 4096 Aug 26 15:16 mixed
drwxr-xr-x. 5 root root 4096 Aug 26 15:16 opentsdb
drwxr-xr-x. 6 root root 4096 Aug 26 15:16 prometheus
|
当Grafana安装完成后,就可以着手为Grafana添加数据源了,比如以Graphite和zabbix为数据源,或者以Elasticsearch为数据源都可以。具体如何添加数据源Grafana官网有详细说明
http://docs.grafana.org/datasources/overview/
后面我也会给出几个数据源具体添加过程作为参考。
三、Grafana插件安装
Grafana官网提供了很多类型的插件,能够帮助我们完成一些其他的任务,使用grafana-cli工具安装即可。如下:
安装Panel类型,以Clock为例
|
1
|
$grafana-cli plugins install grafana-clock-panel
|
安装apps类型,以Worldping为例
|
1
|
$ grafana-cli plugins install raintank-worldping-app
|
安装Data source类型,以SimpleJson为例
|
1
|
$ grafana-cli plugins install grafana-simple-json-datasource
|
安装完成,提示重启grafana服务
|
1
|
$ /etc/init.d/grafana-server restart
|
插件使用及仪表板模板导入,Worldping使用展示。


更多插件的使用自己摸索。
列出插件
|
1
|
$ grafana-cli plugins ls
|
更新插件
|
1
|
$ grafana-cli plugins update <plugin-id>
|
移除插件
|
1
|
$ grafana-cli plugins remove <plugin-id>
|
完结。。。
摘自 http://www.ywnds.com/?p=5903
关于grafana 的文章还有 https://yq.aliyun.com/articles/227006 《5分钟搭建网站实时分析:Grafana+日志服务实战》
Grafana安装配置介绍的更多相关文章
- grafana 安装配置
Grafana安装配置 1.下载安装包 wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.3.l ...
- Prometheus(一):Prometheus+Grafana 安装配置
一.基础环境 系统 IP 监控主机 CentOS 7 192.168.56.200 被监控主机 CentOS 7 192.168.56.201 二.Prometheus服务端安装 以下操作皆在监控主机 ...
- Jmeter+ InfluxDB+Grafana安装配置
前置条件: 系统:windows jmeter:5.1 InfluxDB安装 下载InfluxDB-v1.7.9和Chronograf-v1.7.14(InfluxDB的可视化web端). 下载完成之 ...
- Grafana是一个可视化面板-安装配置介绍
Grafana是一个可视化面板(Dashboard),有着非常漂亮的图表和布局展示,功能齐全的度量仪表盘和图形编辑器,支持Graphite.zabbix.InfluxDB.Prometheus和Ope ...
- Node.js 安装配置介绍
Node.js 安装配置 本章节我们将向大家介绍在window和Linux上安装Node.js的方法. 本安装教程以Node.js v6.10.1 LTS(长期支持版本)版本为例. Node.js安装 ...
- influxDB+grafana安装配置及邮件告警发送配置
1. InfluxDB安装 下载包并解压: $:wgethttps://dl.influxdata.com/influxdb/releases/influxdb-1.3.6_linux_amd64.t ...
- NodeJS学习(1)--- 安装配置介绍
Node.js 安装配置 本章节我们将向大家介绍在window和Linux上安装Node.js的方法. 本安装教程以Node.js v6.10.1 LTS(长期支持版本)版本为例. Node.js安装 ...
- Nginx安装配置介绍(二)
一:Nginx安装(Windows) 官网地址:https://nginx.org/en/download.html 解压完成后,文件目录如下: 启动Nginx: 直接双击目录下的nginx.exe, ...
- 转:Redis 的安装配置介绍
redis 是一个高性能的key-value数据库. redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部 分场合可以对关系数据库起到很好的补充作用.它提供了Pyth ...
随机推荐
- 《操作系统_时间片轮转RR进程调度算法》
转自:https://blog.csdn.net/houchaoqun_xmu/article/details/55540250 时间片轮转RR进程调度算法 一.概念介绍和案例解析时间片轮转法 - 基 ...
- jvm 内存溢出问题排查方法
如果你做TCP通讯或者map集合操作,并发处理等功能时,很容易出现 Java 内存溢出的问题.本篇文章,带领大家深入jvm,分析并找出jvm内存溢出的代码. jvm中除了程序计数器,其他的区域都有可能 ...
- Python多线程爬虫
前言 用上多线程,感觉爬虫跑起来带着风 运行情况 爬取了9万多条文本记录,耗时比较短,一会儿就是几千条 关键点 多个线程对同一全局变量进行修改要加锁 # 获取锁,用于线程同步 threadLock.a ...
- Educational Codeforces Round 23 F. MEX Queries 离散化+线段树
F. MEX Queries time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu ...
- Python3 数据库连接
PyMySQL是在Python3.x版本中用于连接MySQL服务器的一个库,Python2中使用mysqldb. 数据库连接 连接数据库前,请先确认一下事项: 已经创建数据库testdb. 在test ...
- Windows操作系统电脑的运行代码大全
CMD命令使用方法:开始->运行->键入cmd.或者win键+R->键入cmd gpedit.msc—–组策略 sndrec32——-录音机 Nslookup——-IP地址侦测器 e ...
- CURLE_OPERATION_TIMEDOUT libcurl 错误码28– 操作超时
在多线程情况下出现错误码28 是因为没有调用全局初始化函数 static int GlobleInit();//全局初始化,主程序调用一次,只能一次 static void GlobleFint(); ...
- ubuntu18重装后 基本需求安装
以下为本人重装ubuntu18后的基本需求安装过程 1 apt-fast sudo add-apt-repository ppa:apt-fast/stable sudo apt-get update ...
- ZOJ 4053 Couleur
4053 思路: 主席树 先分别求前缀和后缀的逆序数 然后要求某一段的逆序数,就可以根据前缀或着后缀根据容斥求出答案, 这样需要枚举这一段中的数,求之前或者之后有多少个比他大或比他小的数, 这个可以通 ...
- svn上传和下载项目
上传:到项目文件的svn文件夹下——>右键——>SVN Commit...——>输入提交代码备注信息,以便同事查看时,是属于什么内容.这里可以选择哪些文件是要提交到代码仓库上, 下载 ...