npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

syro

v0.1.2

Published

realtime system monitor

Downloads

4

Readme

SYRO

Real-Time System Monitor

NPM

DEMO

安装

npm install syro -g

简介

  • syro是一个服务器系统数据实时监控程序,目前可监控Mac和Linux系统。
  • syro可以同时监测多台服务器(seeker),同时需要一台中控服务器(dashboard)。
  • 中控服务器负责收集监测数据,并为用户提供WEB服务,用户可通过WEB页面查看被监测服务器的实时系统数据。
  • 监测为实时服务,默认不提供数据持久化功能。

使用方法

被监测服务器(seeker)

1. syro init seeker
2. syro start

中控服务器(dashboard)

1. syro init dashboard
2. syro start
3. 用浏览器打开http://localhost:1337/

配置

使用syro init命令可以在当前目录下生成相应的配置文件,例如:

syro init seeker //=> seeker_conf.json 被监测服务器的配置
    
syro init dashboard //=> dashboard_conf.json 中控服务器的配置

seeker_conf.json包含的字段

socketType

被检测服务器采集数据后,通过此协议,向中控服务器发送数据

默认使用udp4

"socketType": "udp4"    

port

本机用于通信的端口

默认使用9528

"port": 9528

interval

采集数据的频率,单位ms

默认1000ms

"interval": 1000

dashboard

中控服务器的地址和端口

"dashboard": {
    "address": "127.0.0.1",
    "port": 9527
}

dashboard_conf.json包含的字段

socketType

通过此协议向被监测服务器发送数据

默认使用udp4

"socketType": "udp4"    

port

本机用于通信的端口

默认使用9527

"port": 9527

seekers

向此中控服务器发送数据的被监测服务器

"seekers": {
    "127.0.0.1": [ 9528 ],
    "10.0.0.1":  [ 9528 ]
}