influxd安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了influxd安装相关的知识,希望对你有一定的参考价值。

#安装

rpm -ivh influxdb-1.2.0.x86_64.rpm

修改配置文件

[[graphite]]

Determines whether the graphite endpoint is enabled.

enabled = false

database = "graphite"

retention-policy = ""

bind-address = ":2003"

protocol = "tcp"

consistency-level = "one"

These next lines control how batching works. You should have this enabled

otherwise you could get dropped metrics or poor performance. Batching

will buffer points in memory if you have many coming in.

Flush if this many points get buffered

batch-size = 5000

number of batches that may be pending in memory

batch-pending = 10

Flush at least this often even if we haven‘t hit buffer limit

batch-timeout = "1s"

UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.

udp-read-buffer = 0

This string joins multiple matching ‘measurement‘ values providing more control over the final measurement name.

separator = "."

or by tags extracted from metric

tags = ["region=us-east", "zone=1c"]

Each template line requires a template pattern. It can have an optional

filter before the template and separated by spaces. It can also have optional extra

tags following the template. Multiple tags should be separated by commas and no spaces

similar to the line protocol format. There can be only one default template.

templates = [

"*.app env.service.resource.measurement",

Default template

"server.*",

]

enabled = true
bind-address = ":2003"
database = "jmeter"
retention-policy = ""
protocol = "tcp"
batch-size = 5000
batch-pending = 10
batch-timeout = "1s"
consistency-level = "one"
separator = "."
udp-read-buffer = 0

启动:

  influxd -config /path/to/config/file

技术分享图片

[I] 2018-08-20T07:25:23Z InfluxDB starting, version 1.2.0, branch master, commit b7bb7e8359642b6e071735b50ae41f5eb343fd42
[I] 2018-08-20T07:25:23Z Go version go1.7.4, GOMAXPROCS set to 4
[I] 2018-08-20T07:25:23Z Using configuration at: /path/to/config/file
run: parse config: open /path/to/config/file: no such file or directory

技术分享图片
/etc/init.d/influxdb restart
influxdb process already stopped [ OK ]
Starting influxdb...
influxdb process was started [ OK ]

 ![](http://i2.51cto.com/images/blog/201808/20/4baec9b89c9ed8684fbdea07f6bd32c4.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

 关闭防火墙:
 serice iptables stop

技术分享图片

 访问:

技术分享图片

以上是关于influxd安装的主要内容,如果未能解决你的问题,请参考以下文章

实战 InfluxDb + Grafana 数据监控

在Tomcat的安装目录下conf目录下的server.xml文件中增加一个xml代码片段,该代码片段中每个属性的含义与用途

PHP代码-psysh调试代码片段工具

VIM 代码片段插件 ultisnips 使用教程

python influxDB 基本操作

python influxDB 基本操作