Decrease timeout/retries for check_openstack_api

It has been noted that with the default values (timeout=20s and
retries=3), the plugin may take longer than the collection interval to
get all metrics leading to spurious UNKNOWN alerts.

Change-Id: Id7294e6e78129b31230b1050b258def2d7792ce1
diff --git a/collectd/files/plugin/check_openstack_api.py b/collectd/files/plugin/check_openstack_api.py
index 82c4ae8..3611c0f 100644
--- a/collectd/files/plugin/check_openstack_api.py
+++ b/collectd/files/plugin/check_openstack_api.py
@@ -53,6 +53,8 @@
         super(APICheckPlugin, self).__init__(*args, **kwargs)
         self.plugin = PLUGIN_NAME
         self.interval = INTERVAL
+        self.timeout = 2
+        self.max_retries = 1
 
     def _service_url(self, endpoint, path):
         url = urlparse(endpoint)