码迷,mamicode.com
首页 > 其他好文 > 详细

如何确定某个counter对应的rrd文件

时间:2016-06-22 12:51:33      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

info.py

#!/usr/bin/env python

import requests
import json
import sys

d = [
        {
            "endpoint": sys.argv[1],
            "counter": sys.argv[2],
        },
]
url = "http://127.0.0.1:9966/graph/info"
r = requests.post(url, data=json.dumps(d))
print r.text


执行:
python info.py master feng-count

[{"endpoint":"master","counter":"feng-count","consolFun":"GAUGE","step":60,"filename":"/data/6070/c0/c0c426be18bf40971d0f2b6cc4331818_GAUGE_60.rrd","addr":"172.16.230.169:6070"}]

 

如何确定某个counter对应的rrd文件

标签:

原文地址:http://www.cnblogs.com/fengjian2016/p/5606634.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!