Sampler是一个用于shell命令执行,可视化和警报的工具先看看效果图:
文章插图
项目热度标星: 6047(功能还是很强大,很实用)
拷贝: 257
贡献人数: 3
最后更新: 2019-08-20
代码提交活跃度:
文章插图
推荐指数:【3】颗星
开发语言开发语言:Go
安装教程苹果系统
brew cask install samplerhuhu或者
sudo curl -Lo /usr/local/bin/sampler https://github.com/sqshq/sampler/releases/download/v1.0.3/sampler-1.0.3-darwin-amd64sudo chmod +x /usr/local/bin/samplerLiunx
sudo wget https://github.com/sqshq/sampler/releases/download/v1.0.3/sampler-1.0.3-linux-amd64 -O /usr/local/bin/samplersudo chmod +x /usr/local/bin/sampler例子Runchart
文章插图
runcharts: - title: Search engine response time rate-ms: 500 # sampling rate, default = 1000 scale: 2 # number of digits after sample decimal point, default = 1 legend: enabled: true # enables item labels, default = true details: false # enables item statistics: cur/min/max/dlt values, default = true items: - label: google sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com color: 178 # 8-bit color number, default one is chosen from a pre-defined palette - label: YAHOO sample: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com - label: BING sample: curl -o /dev/null -s -w '%{time_total}' https://www.bing.comSparkline
文章插图
parklines: - title: CPU usage rate-ms: 200 scale: 0 sample: ps -A -o %cpu | awk '{s+=$1} END {print s}' - title: Free memory pages rate-ms: 200 scale: 0 sample: memory_pressure | grep 'Pages free' | awk '{print $3}'Barchart
文章插图
barcharts: - title: Local network activity rate-ms: 500 # sampling rate, default = 1000 scale: 0 # number of digits after sample decimal point, default = 1 items: - label: UDP bytes in sample: nettop -J bytes_in -l 1 -m udp | awk '{sum += $4} END {print sum}' - label: UDP bytes out sample: nettop -J bytes_out -l 1 -m udp | awk '{sum += $4} END {print sum}' - label: TCP bytes in sample: nettop -J bytes_in -l 1 -m tcp | awk '{sum += $4} END {print sum}' - label: TCP bytes out sample: nettop -J bytes_out -l 1 -m tcp | awk '{sum += $4} END {print sum}'Textbox
文章插图
textboxes: - title: Local weather rate-ms: 10000 # sampling rate, default = 1000 sample: curl wttr.in?0ATQF border: false # border around the item, default = true color: 178 # 8-bit color number, default is white - title: Docker containers stats rate-ms: 500 sample: docker stats --no-stream --format "table {{.Name}}t{{.CPUPerc}}t{{.MemUsage}}t{{.PIDs}}"项目地址https://github.com/sqshq/sampler
【可视化数据库监控警报工具】
推荐阅读
- 开车认清这几种摄像头,哪些拍违章,哪些管监控,和违章说拜拜
- 微信可以设置“监控”状态了!自带动态效果
- 超详细的mysql数据库主备切换演练教程,值得收藏
- 常用前端监控告警工具介绍
- POE交换机不供电怎么办
- 从ORM框架,聊一聊数据库的设计
- 手机APP远程控制PLC监控系统
- 详解三大数据库连接池c3p0,dbcp与druid的区别与联系
- 包含JVM监控 使用 Zabbix 监控 Tomcat
- Redis内存数据库笔记