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

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

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

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

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