用于riemann的python客户端,用double代替float测试发送度量。不要使用!

bernhard_cletus的Python项目详细描述


#bernhard[riemann]的一个简单的python客户端(http://github.com/aphyr/riemann)。用法:

``python
import bernhard

c.send({host':'myhost.foobar.com','service':'myservice',“metric”:12}
q=c.query('true')
```


bernhard支持自定义属性,语法为:
``python
import bernhard


c.send({host':'awesome.host.com','attributes':{'sky':'sunny','sea':'agatited'})
````


查询索引就像:
``python
import bernhard

q=c.query('true')
for e in q:
print“host:”,e.host,“state:”,e.state
```


欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java SimpleFramework和工厂方法   Java适当地处理异常   java单例类不起作用   java小程序和Swing在eclipse中不显示组件   多个键上的java Redisson FastRemove不起作用   java验证请求正文不等于模式   在Java中从URL读取数据   eche RecyclerView项的java Set自定义字体   string Java如何从Date获取HH:mm:ss   当Java应用程序落后于负载均衡器时,在某些URL上强制使用SSL   使用esapi时发生java错误   java使用流根据第二个列表中的值更新一个列表中的对象   组织。openqa。硒。Java中的NoTouchElementException WebDriver?   从JSON字符串Java创建CSV文件