Install newer mod-influxdb + use __host__ as service desc

Change-Id: I501e307ec7b0c5c80d38e9e3c7d139806255262d
This commit is contained in:
flavien peyre 2015-08-12 16:18:50 -04:00
parent 9e3131e1f6
commit 867f743174
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class MetricNameHandler(handler.Handler):
def get(self, host_name, service_description=None):
"""Return all metrics name."""
service_description = service_description or ''
service_description = service_description or '__host__'
query = ("SHOW measurements WHERE host_name='%s' "
"AND service_description='%s'"
% (host_name, service_description))

View File

@ -182,5 +182,5 @@ class TestHostMetric(functionalTest.FunctionalTest):
self.assertEqual(
m.last_request.qs['q'],
["show measurements where host_name='ws-arbiter' "
"and service_description=''"]
"and service_description='__host__'"]
)

View File

@ -42,7 +42,7 @@ RUN cd /tmp && \
# mod-influxdb
RUN pip install influxdb==2.8.0
RUN cd /tmp && \
wget -O mod-influxdb.tar.gz https://github.com/savoirfairelinux/mod-influxdb/archive//92b1ccbd670991c495c71c0914a1fb0b18676bb6.tar.gz && \
wget -O mod-influxdb.tar.gz https://github.com/savoirfairelinux/mod-influxdb/archive/9433b726492a09d5faeb70abfc5efdbf1728686f.tar.gz && \
tar -zxvf mod-influxdb.tar.gz && \
mv /tmp/mod-influxdb-*/module /var/lib/alignak/modules/mod-influxdb && \
rm -rfv /tmp/mod-influxdb*