Created
August 23, 2018 17:54
-
-
Save mizanRahman/6dc05684384db7ee2f0d6286d3920e76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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