【文件属性】:
文件名称:yabeda:可扩展框架,用于从Ruby应用程序收集和导出指标
文件大小:25KB
文件格式:ZIP
更新时间:2021-02-02 04:40:09
ruby monitoring RubyRuby
矢部田
该软件正在开发中:功能将出现和消失,API将被更改,欢迎您提供反馈!
可扩展的解决方案,可在Ruby应用程序中轻松设置监视。 在《火星纪事阅读有关Yabeda及其背后原因的更多信息:
安装
大多数情况下,您不需要直接将此gem添加到Gemfile中(除非您仅收集自定义指标):
gem 'yabeda'
# Then add monitoring system adapter, e.g.:
# gem 'yabeda-prometheus'
然后执行:
$ bundle
用法
声明指标:
Yabeda . configure do
group :your_app do
counter :bells_rang_count , comment : "Total number of bells being rang" , tags : %i[ bell_size ]
gauge :whistles_active , comment : "Number of whistles ready to whistle"
histogram
【文件预览】:
yabeda-master
----.gitignore(126B)
----README.md(6KB)
----.rubocop.yml(1KB)
----CHANGELOG.md(3KB)
----bin()
--------console(270B)
--------setup(131B)
----.github()
--------workflows()
----Gemfile(326B)
----.yardopts(25B)
----.rspec(53B)
----spec()
--------yabeda()
--------yabeda_spec.rb(779B)
--------spec_helper.rb(497B)
----yabeda.gemspec(1KB)
----LICENSE.txt(1KB)
----lib()
--------yabeda.rb(3KB)
--------yabeda()
----Rakefile(207B)