码迷,mamicode.com
首页 > 其他好文 > 详细

influxd安装

时间:2018-08-20 16:35:52      阅读:609      评论:0      收藏:0      [点我收藏+]

标签:col   direct   more   master   his   level   pac   eve   1.2   

#安装

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安装

标签:col   direct   more   master   his   level   pac   eve   1.2   

原文地址:http://blog.51cto.com/357712148/2161979

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!