<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default" style="font-size:13px">Hi there!</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">
I'm trying to write a definition using a curl requesting to a Rackspace API. I need to get my LB metrics using collectd, so I'm using curl_json plugin as the response from the API is in json format. So, I have a few questions:</div>
<div class="gmail_default" style="font-size:13px">1- Here's the url I use to request to the API: curl -H "X-Auth-Token: $token" <a href="https://api_url/v1.0/user_id/loadbalancers/1779/usage/current" target="_blank">https://API_url/v1.0/user_id/loadbalancers/1779/usage/current</a> | python -m json.tool</div>
<div class="gmail_default" style="font-size:13px">As you may see, there's a token involved that I cannot figure out where to set that in the plugin configuration.</div><div class="gmail_default" style="font-size:13px">
2- Also in the first link, you'll see a "python -m json.tool". I don't really know if this is responsable for the json answer, but cannot see where to set it either.</div><div class="gmail_default" style="font-size:13px">
<br></div><div class="gmail_default" style="font-size:13px">Can you help me out here?<br>Thanks!!</div></div><div><br></div>-- <br><div dir="ltr">Mariano Gabriel González</div>
</div>