Grafana
是一个开源的度量分析与可视化套件. 经常被用作基础设施的时间序列数据和应用程序分析的可视化
官方支持以下数据源: Graphite,InfluxDB,OpenTSDB,Prometheus,Elasticsearch,CloudWatch 和 KairosDB
InfluxDB
InfluxDB 是一个由 InfluxData 开发的开源时序型数据. 它由 Go 写成, 着力于高性能地查询与存储时序型数据. InfluxDB 被广泛应用于存储系统的监控数据, IoT 行业的实时数据等场景.
注: 以下基于 CentOS 安装
1,influxdb 安装
- # 下载
- wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.0.x86_64.rpm --no-check-certificate
- # 安装
- rpm -ivh influxdb-1.7.0.x86_64.rpm
修改配置文件 influxdb.conf
- [meta] # Where the metadata/raft database is stored # 存放最终存储的数据, 文件以. tsm dir = "/usr/local/influxdb/meta"
- [data] # The directory where the TSM storage engine stores TSM files. # 存放数据库的源数据 wal dir = "/usr/local/influxdb/data"
- # The directory where the TSM storage engine stores WAL files. # 存放预写日志文件 wal-dir = "/var/lib/influxdb/wal"
- [[graphite]]
- # Determines whether the graphite endpoint is enabled.
- enabled = true
- database = "jmeter" # 数据库名称
- retention-policy = ""bind-address =":2003" # 端口
- protocol = "tcp"
- consistency-level = "one"
修改 HTTP 端口信息
- [http]
- # Determines whether HTTP endpoint is enabled.
- enabled = true
- # The bind address used by the HTTP service.
- bind-address = ":8086"
启动服务
indfluxDB 的 tcp 端口: 8088
- # 启动端口
- influxd &
- # 查看端口是否启动
- netstat -anp|grep 8088
来源: http://www.bubuko.com/infodetail-3682386.html