V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yinft
V2EX  ?  问与答

求助帮忙找一个流量监控软件,最好能记录到源和目的 ip 的,然后能保存每分钟历史记录的,最好能 docker 安装。

  •  
  •   yinft · 130 天前 · 895 次点击
    这是一个创建于 130 天前的主题,其中的信息可能已经有所发展或是发生改变。

    腾讯云最新优惠活动来了:云产品限时1折,云服务器低至88元/年 ,点击这里立即抢购:9i0i.cn/qcloud,更有2860元代金券免费领取,付款直接抵现金用,点击这里立即领取:9i0i.cn/qcloudquan

    (福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

    服务器每天凌晨三点零五分固定带宽告警 想看一下那个时间点的上行带宽情况,或者 v 友们有什么其他办法或者工具吗?用 iftop 只能看实时太拉胯了

    12 条回复  ?  2024-01-30 09:59:31 +08:00
    tool2d
        1
    tool2d  
       130 天前
    我有 windows 的工具,但你好像是 linux 的,那就写个定时计划,用 tcpdump 抓一点包呗。
    yinft
        2
    yinft  
    OP
       130 天前
    @tool2d 对的 linux 版本的,需要直观一点的能给领导看
    coolloves
        3
    coolloves  
       130 天前
    感觉 iftop -t 就满足了吧
    anubu
        4
    anubu  
       130 天前
    netdata 应该能满足要求。
    https://github.com/netdata/netdata
    yinft
        5
    yinft  
    OP
       130 天前
    @coolloves 只能轮训打印 并没有时间戳吧
    yinft
        6
    yinft  
    OP
       130 天前
    @anubu 我看看
    yinft
        7
    yinft  
    OP
       130 天前
    @anubu 看了一下只有总体监控指标没看到流量详情啊
    coolloves
        8
    coolloves  
       130 天前
    @yinft while true;do echo "=============currenttime:$(date +%F-%H-%M)" >>iftop;timeout 3 iftop -t >> iftop;done
    fukhak
        9
    fukhak  
       130 天前
    ELK+Packetbeat 應該可以記錄下來
    yinft
        10
    yinft  
    OP
       129 天前
    @anubu 大佬有资料么 给个链接也行
    anubu
        11
    anubu  
       128 天前
    @yinft 不好意思,没有特别的资料。可以简单的按照官方文档拉一个容器看看,基本的监控应该都有的,更详细可能要看官方文档了。
    yinft
        12
    yinft  
    OP
       103 天前
    自己解析 iftop 命令存到了 mongodb 里,用 flask+layui 弄了个简单的表格,有需要的话我可以开源出来。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2634 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 02:00 · PVG 10:00 · LAX 19:00 · JFK 22:00
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com