Allow hostnames to be used as ip_address
Previously introduced change for monasca-persister had enforced the IPAddress as the only type one can configure influxdb.ip_address property with. Following change makes it possible to use also hostname. Using IPAdress is still possible. Change-Id: Ib0d7f19b3ac2dcb7c84923872d94f180cda58b2b
This commit is contained in:
parent
8dba608c42
commit
66fe6f98c0
@ -20,8 +20,9 @@ influxdb_opts = [
|
|||||||
cfg.StrOpt('database_name',
|
cfg.StrOpt('database_name',
|
||||||
help='database name where metrics are stored',
|
help='database name where metrics are stored',
|
||||||
default='mon'),
|
default='mon'),
|
||||||
cfg.IPOpt('ip_address',
|
cfg.HostAddressOpt('ip_address',
|
||||||
help='ip address to influxdb'),
|
help='Valid IP address or hostname '
|
||||||
|
'to InfluxDB instance'),
|
||||||
cfg.PortOpt('port',
|
cfg.PortOpt('port',
|
||||||
help='port to influxdb',
|
help='port to influxdb',
|
||||||
default=8086),
|
default=8086),
|
||||||
|
Loading…
Reference in New Issue
Block a user