ucloud_umon_to_influxdb

command module
v0.0.0-...-f85cf53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2019 License: LGPL-3.0 Imports: 5 Imported by: 0

README

云IDC供应商Ucloud的监控api采集工具

功能:

支持采集Ucloud的以下监控指标,并转化为Influxdb 1XX的格式,写入Influxdb

  • 云主机uhost
  • 云负载均衡ulb
  • 云数据库udb
  • 云Redisuredisk
  • 云EIPueip

快速启动:
./ucloud_monitor \
	--influxdb.addr="http://192.168.9.227:8086" \
	--ucloud.publickey="xxxxxxxxxxxxxxxxxxxxxxx" \
	--ucloud.privatekey="xxxxxxxxxxxxxxxxx" \
	--ucloud.interval=300
Help:
  • ucloud.interval采集周期,由于Ucloud的api调用时差,该参数不能低于120秒,不能高于3600秒。
  • ucloud.reloadtime更新监控主体列表,为了减少API调用频率,默认每1小时更新监控主体。比如有新加服务,最晚会1个小时后开始采集监控数据。
Usage of ucloud_monitor:
  -influxdb.addr string
        InfluxDB Addr. (default "http://loaclhost:8086")
  -influxdb.db string
        InfluxDB db. (default "ucloud")
  -influxdb.policy string
        InfluxDB db policy. (default "autogen")
  -influxdb.pwd string
        InfluxDB password.
  -influxdb.user string
        InfluxDB user.
  -ucloud.interval int
        Ucloud time interval.  (default 3600)
  -ucloud.privatekey string
        Ucloud api  PrivateKey.
  -ucloud.publickey string
        Ucloud api  PublicKey.
  -ucloud.reloadtime int
        Ucloud time interval.  (default 3600)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL