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

influxd安装

[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

influxd安装
/etc/init.d/influxdb restart
influxdb process already stopped [ OK ]
Starting influxdb...
influxdb process was started [ OK ]

 ![](https://s1.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安装

 访问:

influxd安装

转载于:https://blog.51cto.com/357712148/2161979

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值