Sign inSign up

killingjacky/v2ray_stats_influxdb

By killingjacky

•Updated over 7 years ago

post v2ray stats informations to remote influxdb

Image
0

359

killingjacky/v2ray_stats_influxdb repository overview

⁠v2ray stats influxdb

⁠How to Use

⁠1. Create a configuration file

./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

⁠2. Run container with a mounted volume

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
...

⁠Credits

Tag summary

Content type

Image

Digest

Size

40.4 MB

Last updated

over 7 years ago

docker pull killingjacky/v2ray_stats_influxdb