From 66fe6f98c079490d2d5de4c161da1d8b3801cda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Tr=C4=99bski?= Date: Thu, 19 Oct 2017 06:47:23 +0200 Subject: [PATCH] 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 --- monasca_persister/conf/influxdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monasca_persister/conf/influxdb.py b/monasca_persister/conf/influxdb.py index 2d1fb09e..e0404632 100644 --- a/monasca_persister/conf/influxdb.py +++ b/monasca_persister/conf/influxdb.py @@ -20,8 +20,9 @@ influxdb_opts = [ cfg.StrOpt('database_name', help='database name where metrics are stored', default='mon'), - cfg.IPOpt('ip_address', - help='ip address to influxdb'), + cfg.HostAddressOpt('ip_address', + help='Valid IP address or hostname ' + 'to InfluxDB instance'), cfg.PortOpt('port', help='port to influxdb', default=8086),