File tree Expand file tree Collapse file tree
elasticsearch/python_modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def update_result(result, url):
127127 diff = now - last_update
128128 if diff > 20 :
129129 print '[elasticsearch] ' + str (diff ) + ' seconds passed - Fetching ' + url
130- result = json .load (urllib .urlopen (url , None , 2 ))
130+ result = json .load (urllib .urlopen (url ))
131131 last_update = now
132132
133133 return result
@@ -199,7 +199,7 @@ def metric_init(params):
199199
200200 # First iteration - Grab statistics
201201 print ('[elasticsearch] Fetching ' + url_cluster )
202- result = json .load (urllib .urlopen (url_cluster , None , 2 ))
202+ result = json .load (urllib .urlopen (url_cluster ))
203203
204204 metric_group = params .get ('metric_group' , 'elasticsearch' )
205205
@@ -220,7 +220,7 @@ def metric_init(params):
220220 url_indices = '{0}{1}/_stats' .format (host , index )
221221 print ('[elasticsearch] Fetching ' + url_indices )
222222
223- r_indices = json .load (urllib .urlopen (url_indices , None , 2 ))
223+ r_indices = json .load (urllib .urlopen (url_indices ))
224224 descriptors += get_indices_descriptors (index ,
225225 Desc_Skel ,
226226 r_indices ,
You can’t perform that action at this time.
0 commit comments