无废话centos+TDengine+Telegraf+Grafana入门

一、安装TDengine:
1、从官网https://www.taosdata.com/cn/getting-started/下载RPM包(tdengine-1.6.2.0-3.el7.x86_64.rpm)
2、安装:rpm -ivh tdengine-1.6.2.0-3.el7.x86_64.rpm
3、启动taos:systemctl start taosd
4、输入taos,进入数据库
5、创建数据库 create database udb;

 

二、安装Telegraf:

1、下载安装

wget https://dl.influxdata.com/telegraf/releases/telegraf-1.12.1-1.x86_64.rpm
sudo yum localinstall telegraf-1.12.1-1.x86_64.rpm

2、配置Telegraf,进入/etc/telegraf/telegraf.conf

在文件最后添加,注意url中的udb为上面创建的db.

[[outputs.http]]
  url = "http://localhost:6020/telegraf/udb"
  method = "POST"
  username = "root"
  password = "taosdata"
  data_format = "json"
  json_timestamp_units = "1ms" 

3、启动 sudo systemctl start telegraf

三、安装node

1.yum install -y gcc-c++ make
2. curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
3.sudo yum install nodejs
4.检查是否安装成功

node --version
npm --version

 

 

export GOROOT=/usr/lib/golang export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
 

转载于:https://www.cnblogs.com/meetrice/p/11544503.html

你可能感兴趣的:(无废话centos+TDengine+Telegraf+Grafana入门)