项目作者: SlashNephy

项目描述 :
🔌 A tiny tool to export psutil metrics
高级语言: Python
项目地址: git://github.com/SlashNephy/psutil-influx-exporter.git
创建时间: 2021-02-16T07:25:20Z
项目社区:https://github.com/SlashNephy/psutil-influx-exporter

开源协议:MIT License

下载


psutil-influx-exporter

A tiny tool to export psutil metrics

Supports InfluxDB 2.x.

docker-compose.yml

  1. version: '3.8'
  2. services:
  3. influxdb:
  4. container_name: InfluxDB
  5. image: influxdb:2.3
  6. restart: always
  7. volumes:
  8. - influxdb:/var/lib/influxdb
  9. psutil-influx-exporter:
  10. container_name: psutil-influx-exporter
  11. image: ghcr.io/slashnephy/psutil-influx-exporter:master
  12. restart: always
  13. volumes:
  14. - /mnt:/mnt:ro
  15. - /:/ext/host:ro
  16. environment:
  17. # メトリックの取得間隔 (秒)
  18. INTERVAL: 10
  19. INFLUX_ADDR: http://influxdb:8086
  20. INFLUX_BUCKET: xxx
  21. INFLUX_ORG: org
  22. INFLUX_TOKEN: xxx
  23. # マウントポイント
  24. MOUNT_POINTS: /mnt,/ext
  25. volumes:
  26. influxdb:
  27. local: driver