Releases: lflxp/showme
Releases · lflxp/showme
smart cli
新增功能
- 升级golang版本到1.21.6
- 新增多线程IP+端口扫描工具
- 新增smart 智能命令补全工具 + 新增completion 命令补全脚本 + showme内置fzf (一个文件无其它依赖,zsh除外)
- 新增djangolang框架代码案例
- 新增metrics工具
- 新增help提示命令
- 外置monitor性能监控工具,实现跨操作系统的性能实时监控
BUG FIX
- slf4go依赖编译问题,改为log/slog
- 升级pstuil版本,支持macos|linux (windows未验证)
- 解决依赖项目的编译和golang版本等各种问,包括:
- lflxp-k8s
- lflxp-music
- lflxp-orzdba
- lflxp-scan
- lflxp-smkubectl
- lflxp-monitor
- lflxp-tty
- lflxp-scan
k8s快捷面板
新增
- k8s dashboard,模仿rancher,实现平时经常使用的kubectl工具提供的功能,以网页版的形式提供,功能如下:
集群
- 节点
- 事件
- 更多资源
工作负载
- Pods
- Deployments
- Daemonsets
- Statefulsets
- Cronjobs
- Jobs
服务发现
- Services
- Ingress
应用商店
注意:
k8s dashboard集成了平时常用的查看日志、exec进入容器、对CRD的增删改查、还有基于kubevela的应用商店
- 提供了open-golang自动打开浏览器的功能
FIX
- 新增了k8s dashboard readme图片
- 优化了showme cli部分展示内容
webTerminial Coming
新增功能
- tty 一款web terminial浏览器在线浏览功能
- static 静态文件上传、下载、视频文件播放功能
Usage
tags:
- tty
showme tty 是基于web的Terminal工具
安装
git clone https://github.com/lflxp/showme
make install
showme -h
使用
showme tty [flags] [command] [args]
eg: showme tty -w -r showme proxy http
Usage:
showme tty [flags]
Flags:
-a, --audit 是否开启审计
-c, --crt string *.crt文件路径 (default "./server.crt")
-d, --debug debug log mode
-h, --help help for tty
-H, --host string http bind host (default "0.0.0.0")
-k, --key string *.key文件路径 (default "./server.key")
-m, --maxconnect int 最大连接数
-p, --password string BasicAuth 密码
-P, --port string http bind port (default "8080")
-f, --prof 是否开启pprof性能分析
-r, --reconnect 是否自动重连
-t, --tls 是否开启https
-u, --username string BasicAuth 用户名
-w, --write 是否开启写入模式
-x, --xsrf 是否开启xsrf,默认开启
Global Flags:
--config string config file (default is $HOME/.showme.yaml)
去除依赖 拿来即用版本
去除master branch功能有:
- kubectl
- gopacket
- agent api & prometheus
1. 排查工具包括:
* IP扫描
* 端口扫描
* 性能实时监控
* 静态文件传输服务器
* mysql性能监控及排查工具
* 网络流量抓包工具
* shadowsocks local & server client
2. 运维自动化工具
* 本地API接口(远程监控、远程数据bbolt存储)
* 运维自动化Agent(RPCX远程过程调用)
3. 无参数无命令
* 运维本地快速问题排查工具
3.1 排查工具介绍
* 致力于解决人肉运维中想快速定位系统性能、数据库性能、网络包、快速文件传输服务器等基础但重要的功能
3.2 目标
* 单文件、无依赖、快速、信息丰富多样化的console terminal
Usage:
showme [flags]
showme [command]
Available Commands:
agent A brief description of your command
help Help about any command
proxy 代理服务器
static 本地静态文件服务器
Flags:
--config string config file (default is $HOME/.showme.yaml)
-h, --help help for showme
-t, --toggle Help message for toggle
Use "showme [command] --help" for more information about a command.
Cobra add
console shell add cobra
1. 排查工具包括:
* IP扫描
* 端口扫描
* 性能实时监控
* 静态文件传输服务器
* mysql性能监控及排查工具
* 网络流量抓包工具
2. 运维自动化工具
* 本地API接口(远程监控、远程数据bbolt存储)
* 运维自动化Agent(RPCX远程过程调用)
Usage:
showme [command]
Available Commands:
agent A brief description of your command
allinone 运维本地快速问题排查工具
api OPS REST API INTERFACE
help Help about any command
Flags:
--config string config file (default is $HOME/.showme.yaml)
-h, --help help for showme
-t, --toggle Help message for toggle
Use "showme [command] --help" for more information about a command.
mysql monitor by orzdba
What's new
- add mysql monitor by @lflxp/orzdba
- dashboard mysql current status
options
{Text: "-B", Description: "Print Bytes received from/send to MySQL(Bytes_received,Bytes_sent)."},
{Text: "-H", Description: "Mysql连接主机,默认127.0.0.1 (default \"127.0.0.1\")"},
{Text: "-L", Description: "Print to Logfile. (default \"none\")"},
{Text: "-P", Description: "Mysql连接端口,默认3306 (default \"3306\")"},
{Text: "-u", Description: "Mysql 用户名,默认: root"},
{Text: "-p", Description: "Mysql 密码"},
{Text: "-db", Description: "Mysql 指定databases,默认:mysql"},
{Text: "-S", Description: "mysql socket连接文件地址 (default \"/tmp/mysql.sock\")"},
{Text: "-T", Description: "Print Threads Status(Threads_running,Threads_connected,Threads_created,Threads_cached)."},
{Text: "-com", Description: "Print MySQL Status(Com_select,Com_insert,Com_update,Com_delete)."},
{Text: "-hit", Description: "Print Innodb Hit%."},
{Text: "-nocolor", Description: "不显示颜"},
{Text: "-t", Description: "打印当前时间"},
{Text: "-innodb", Description: "Print InnodbInfo(include -t,-innodb_pages,-innodb_data,-innodb_log,-innodb_status)"},
{Text: "-innodb_rows", Description: "Print Innodb Rows Status(Innodb_rows_inserted/updated/deleted/read)."},
{Text: "-innodb_pages", Description: "Print Innodb Buffer Pool Pages Status(Innodb_buffer_pool_pages_data/free/dirty/flushed)"},
{Text: "-innodb_data", Description: "Print Innodb Data Status(Innodb_data_reads/writes/read/written)"},
{Text: "-innodb_log", Description: "Print Innodb Log Status(Innodb_os_log_fsyncs/written)"},
{Text: "-innodb_status", Description: "Print Innodb Status from Command: 'Show Engine Innodb Status'"},
{Text: "-T", Description: "Print Threads Status(Threads_running,Threads_connected,Threads_created,Threads_cached)."},
{Text: "-mysql", Description: "Print MySQLInfo (include -t,-com,-hit,-T,-B)."},
{Text: "-lazy", Description: "Print Info (include -t,-l,-c,-s,-com,-hit)."},
{Text: "-semi", Description: "半同步监控"},
{Text: "-slave", Description: "打印Slave info"},
scan & monitor
what changed
- ip扫描优化
- 端口扫描优化
- 主机实时监控优化
- 新增静态文件服务器功能
- 新增ip扫描结果查询
- 新增port扫描结果查询
- mysql orzdba 监控信息
添加条件编译
可以动态编译需要的内容和不需要动态连接库的内容
需要gopacket功能:
go build -tags=gopacket change
monitor and prompt suggest
monitor local machine
{Text: "-B", Description: "Print Bytes received from/send to MySQL(Bytes_received,Bytes_sent)."},
{Text: "-C", Description: "运行时间 默认无限"},
{Text: "-H", Description: "Mysql连接主机,默认127.0.0.1 (default \"127.0.0.1\")"},
{Text: "-L", Description: "Print to Logfile. (default \"none\")"},
{Text: "-P", Description: "Mysql连接端口,默认3306 (default \"3306\")"},
{Text: "-S", Description: "mysql socket连接文件地址 (default \"/tmp/mysql.sock\")"},
{Text: "-T", Description: "Print Threads Status(Threads_running,Threads_connected,Threads_created,Threads_cached)."},
{Text: "-c", Description: "打印Cpu 信息负载信息"},
{Text: "-com", Description: "Print MySQL Status(Com_select,Com_insert,Com_update,Com_delete)."},
{Text: "-d", Description: "打印Disk info (default \"none\")"},
{Text: "-hit", Description: "Print Innodb Hit%."},
{Text: "-i", Description: "STRING 时间间隔 默认1秒 (default \"1\")"},
{Text: "-l", Description: "打印Load 信息"},
{Text: "-lazy", Description: "Print Info (include -t,-l,-c,-s,-n)."},
{Text: "-n", Description: "打印net网络流量"},
{Text: "-N", Description: "打印net网络详细流量"},
{Text: "-nocolor", Description: "不显示颜"},
{Text: "-s", Description: "打印swap 信息"},
{Text: "-nocolor", Description: "不显示颜"},
{Text: "-t", Description: "打印当前时间"},