0

在 InfluxDB v2 中,配置文件发生了变化。检查下面,它与 v1 不同。 https://docs.influxdata.com/influxdb/v2.0/reference/config-options/

我现在配置了 env 变量。

[root@dele ~]# echo $INFLUXD_CONFIG_PATH
/etc/influxdb/

我按照下面的 fastnetmon influxdb 集成: https ://fastnetmon.com/docs/influxdb_integration/

[root@dele ~]# ls /etc/influxdb/
config.toml
[root@dele ~]# more /etc/influxdb/config.toml
[[graphite]]
  enabled = true
  bind-address = ":2003"
  protocol = "tcp"
  consistency-level = "one"
  separator = "."
  batch-size = 5000 # will flush if this many points get buffered
  batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
  templates = [
    "fastnetmon.hosts.* app.measurement.cidr.direction.function.resource",
    "fastnetmon.networks.* app.measurement.cidr.direction.resource",
    "fastnetmon.total.* app.measurement.direction.resource"
  ]

现在我重新启动 influxdb 并检查打开的端口,但没有找到:2003:

[root@dele ~]# netstat -an 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
...
tcp6       0      0 :::8086                 :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
udp        0      0 0.0.0.0:50001           0.0.0.0:*                          
raw6       0      0 :::58                   :::*                    7       
4

1 回答 1

1

看起来 Influx v2 不再支持石墨了 https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/manual-upgrade/#1x-configuration-groups-not-in- 20 .

如果它没有查看配置的那部分,这可能就是它没有打开端口的原因。

于 2021-04-15T17:44:25.887 回答