Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Created August 23, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizanRahman/6dc05684384db7ee2f0d6286d3920e76 to your computer and use it in GitHub Desktop.
Save mizanRahman/6dc05684384db7ee2f0d6286d3920e76 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import urllib2
import json
url = "http://localhost:8080/api/metrics"
res = urllib2.urlopen(url).read()
json_res= json.loads(res)
print json_res['threads']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment