Centos7.3+Influxdb1.2+Grafana4.2

来源:互联网 发布:数据统计的方法有哪些 编辑:程序博客网 时间:2024/05/20 22:35
一、概述InfluxDB 是一个开源分布式时序、事件和指标数据库。使用 Go 语言编写,无需外部依赖。其设计目标是实现分布式和水平伸缩扩展。它有三大特性:1. Time Series (时间序列):你可以使用与时间有关的相关函数(如最大,最小,求和等)2. Metrics(度量):你可以实时对大量数据进行计算3. Eevents(事件):它支持任意的事件数据特点:schemaless(无结构),可以是任意数量的列Scalablemin, max, sum, count, mean, median 一系列函数,方便统计Native HTTP API, 内置http支持,使用http读写Powerful Query Language 类似sqlBuilt-in Explorer 自带管理工具二、安装及配置InfluxDB1、配置YUM源cat <<EOF| sudo tee /etc/yum.repos.d/influxdb.repo[influxdb]name = InfluxDB Repository- RHEL\$releaseverbaseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stableenabled = 1gpgcheck = 1gpgkey = https://repos.influxdata.com/influxdb.keyEOF2、yum安装yum install influxdb -ysystemctl start influxdbinflux -host '127.0.0.1' -port '8086'[root@zabbix-grafana ~]# influx -host '127.0.0.1' -port '8086'Connected to http://127.0.0.1:8086 version 1.2.2InfluxDB shell version: 1.2.2> show databases;name: databasesname----_internal> create database grafana> use grafana> show databases;name: databasesname----_internalgrafana> create user "grafana" with password 'grafana' with all privileges> 

0 0