开发cloudify配方文件- Web Management Console
2013-04-10 00:00
302 查看
配置Web Management Console
Cloudify web management console提供一个基于web的图形用户界面来监控你的应用和其对应的服务。特别在Applications视图下,通过线性图和仪表盘小部件来展示被选中的服务监控指标,每个小部件展示默认的度量,但也可以通过下来菜单来选择其他度量值。度量面板的布局和下拉菜单都要在各自的服务描述文件中配置。
内置和自定义指标
默认情况下, Cloudify监控CPU和内存的使用率这些通用指标,但是它还可以使用下面的自定义机制监控其他更具体的指标
Monitoring Probes closures that emit metrics and their current value.
Monitoring Plugins
classes that emit metrics and their current value.
Cloudify每5秒调用probe或插件,并返回一个包含指标名与对应值的Map,内置和自定义指标都要在web management console中展示
配置指标部件
在 web management console中, Applications视图包含一个专有的窗格来展示监控指标,并允许你通过下拉菜单来选择度量值。默认下,度量指标描述在widgets块中,布局在thewidgetsGroup块描述
下面是PetClinic 应用下的Mongo 数据库服务描述文件下的userInterface块, metricGroups 块描述MongoDB的6个指标的指标组。 widgetGroups块描述上面6个指标的展示图表和布局。
内置的配方例子
可以查看cloudify例子:
PetClinic 配方 <cloudifyRoot>/examples/petclinic.
tomcat 配方 /examples/petclinic/tomcat/tomcat-service.groovy(JMX插件)
MongoDB 配方 /examples/petclinic/mongod (使用java API连接MongoDB、MongoDB API命令获取监控指标的自定义插件
Cloudify web management console提供一个基于web的图形用户界面来监控你的应用和其对应的服务。特别在Applications视图下,通过线性图和仪表盘小部件来展示被选中的服务监控指标,每个小部件展示默认的度量,但也可以通过下来菜单来选择其他度量值。度量面板的布局和下拉菜单都要在各自的服务描述文件中配置。
内置和自定义指标
默认情况下, Cloudify监控CPU和内存的使用率这些通用指标,但是它还可以使用下面的自定义机制监控其他更具体的指标
Monitoring Probes closures that emit metrics and their current value.
Monitoring Plugins
classes that emit metrics and their current value.
Cloudify每5秒调用probe或插件,并返回一个包含指标名与对应值的Map,内置和自定义指标都要在web management console中展示
配置指标部件
在 web management console中, Applications视图包含一个专有的窗格来展示监控指标,并允许你通过下拉菜单来选择度量值。默认下,度量指标描述在widgets块中,布局在thewidgetsGroup块描述
下面是PetClinic 应用下的Mongo 数据库服务描述文件下的userInterface块, metricGroups 块描述MongoDB的6个指标的指标组。 widgetGroups块描述上面6个指标的展示图表和布局。
userInterface { metricGroups = ([ metricGroup { name "MongoDB" metrics([ "Open Cursors", "Current Active Connections", "Active Read Clients", "Active Write Clients", "Read Clients Waiting", "Write Clients Waiting" ]) } ]) widgetGroups = ([ widgetGroup { name "Open Cursors" widgets ([ balanceGauge{metric = "Open Cursors"}, barLineChart{ metric "Open Cursors" axisYUnit Unit.REGULAR }, ]) }, widgetGroup { name "Current Active Connections" widgets ([ balanceGauge{metric = "Current Active Connections"}, barLineChart{ metric "Current Active Connections" axisYUnit Unit.REGULAR }, ]) }, widgetGroup { name "Active Read Clients" widgets ([ balanceGauge{metric = "Active Read Clients"}, barLineChart{ metric "Active Read Clients" axisYUnit Unit.REGULAR }, ]) }, widgetGroup { name "Active Write Clients" widgets ([ balanceGauge{metric = "Active Write Clients"}, barLineChart{ metric "Active Write Clients" axisYUnit Unit.REGULAR }, ]) }, widgetGroup { name "Read Clients Waiting" widgets ([ balanceGauge{metric = "Read Clients Waiting"}, barLineChart{ metric "Read Clients Waiting" axisYUnit Unit.REGULAR }, ]) }, widgetGroup { name "Write Clients Waiting" widgets ([ balanceGauge{metric = "Write Clients Waiting"}, barLineChart{ metric "Write Clients Waiting" axisYUnit Unit.REGULAR }, ]) } ]) } |
内置的配方例子
可以查看cloudify例子:
PetClinic 配方 <cloudifyRoot>/examples/petclinic.
tomcat 配方 /examples/petclinic/tomcat/tomcat-service.groovy(JMX插件)
MongoDB 配方 /examples/petclinic/mongod (使用java API连接MongoDB、MongoDB API命令获取监控指标的自定义插件
相关文章推荐
- 开发cloudify配方文件-两种应用伸缩方式
- 开发cloudify配方文件- 服务等级SLA
- 开发cloudify配方文件-自定义命令
- 开发cloudify配方文件- Attributes API
- 开发cloudify配方文件-配方的继承
- 开发cloudify配方文件-剖析配方文件
- 互联网开发--web文件上传原理
- 基于easyui开发Web版Activiti流程定制器详解(二)——文件列表
- web 开发调试中的 console 对象
- Hadoop java api ,HDFS文件操作,便于Web开发的集合
- [Web开发] IE 如何判断文件的类型
- Web前端开发规范 : 文件命名规则
- Web开发之文件的上传
- 基于MVC4+EasyUI的Web开发框架经验总结(14)--自动生成图标样式文件和图标的选择操作
- php5与mysql5 web 开发技术详解-11 文件系统与字符流
- vue webuploader 文件上传组件开发
- 一些web开发中常用的、做成cs文件的js代码
- 在Web应用中动态创建PDF文件-Java基础-Java-编程开发
- [转]一些web开发中常用的、做成cs文件的js代码
- Java开发Web程序中修改类文件和配…