post v2ray stats informations to remote influxdb
359
./v2ray_stats_influxdb/config.yml
v2ray:
host: 127.0.0.1
port: 10001
influxdb:
host: 127.0.0.1
port: 8086
database: telegraf
username: xxxx
password: xxxx
https: false
data_tag:
host: my-host1
collector:
interval: 5 #min
debug: false
The following example shows how to query stats information from a docker-based v2ray service.
v2ray_stats:
image: killingjacky/v2ray_stats_influxdb
container_name: "v2ray_stats"
links:
- v2ray
volumes:
- "./v2ray_stats_influxdb/config.yml:/v2ray/config.yml:ro"
logging:
options:
max-size: "10m"
restart: always
For this example, you need to change the v2ray-host of the config.yml like this,
v2ray:
host: v2ray
...
Content type
Image
Digest
Size
40.4 MB
Last updated
over 7 years ago
docker pull killingjacky/v2ray_stats_influxdb