Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加系统名监控 #23

Closed
hotoo opened this issue Aug 12, 2013 · 0 comments
Closed

增加系统名监控 #23

hotoo opened this issue Aug 12, 2013 · 0 comments
Milestone

Comments

@hotoo
Copy link
Member

hotoo commented Aug 12, 2013

  • 目前主要通过 URL 反映出来的域名来分『系统』。
  • 下一步准备直接监控真正的系统名。
<meta name="system-name" content="$!systemUtil.hostInfo.name" />
monitor.on("*", function(meta){
  var content = $("meta[name=system-name]").attr("content");
  var sysName = content.split(/[\-\.]/)[0];
  meta.sys = systemName;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant