Giter Site home page Giter Site logo

clash-exporter's Introduction

It's showtime, folks 👋

visitors

clash-exporter's People

Contributors

zinglix avatar zxh326 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clash-exporter's Issues

read limited at 1048577 bytes

完整log

2023-06-27 13:37:07 2023/06/27 05:37:07 Listening on : 2112
2023-06-27 13:37:07 2023/06/27 05:37:07 starting collector: tracing
2023-06-27 13:37:07 2023/06/27 05:37:07 starting collector: connections
2023-06-28 02:01:59 2023/06/27 18:01:59 collector: connections failed, retry after 10s error: failed to read JSON message: failed to read JSON message: failed to read: read limited at 1048577 bytes
2023-06-28 02:02:09 2023/06/27 18:02:09 starting collector: connections
2023-06-28 11:44:08 2023/06/28 03:44:08 collector: connections failed, retry after 20s error: failed to read JSON message: failed to read JSON message: failed to read: read limited at 1048577 bytes
2023-06-28 11:44:28 2023/06/28 03:44:28 starting collector: connections
2023-06-28 16:25:56 2023/06/28 08:25:56 collector: connections failed, retry after 30s error: failed to read JSON message: failed to read JSON message: failed to get reader: failed to read frame header: EOF
2023-06-28 16:25:56 2023/06/28 08:25:56 collector: tracing failed, retry after 10s error: failed to read JSON message: failed to read JSON message: failed to get reader: failed to read frame header: EOF

startup error in pve debian12

I get the following error in the boot log, can you help me take a look?

failed to dial: failed to WebSocket dial: expected handshake response status code 101 but got 404

grafana 无法连接 prometheus

截屏2023-06-26 16 46 28

除了前面的问题,我在docker 中运行的clash-exporter 会连接不上。release 的连接没有出现错误

..[$] <()> ./clash-exporter-v0.0.1-darwin-arm64
2023/06/26 16:42:41 Listening on : 2112
2023/06/26 16:42:41 starting collector: connections

高CPU占用

运行时发现CPU占用极高,同时带着clash的CPU占用上升

image

疑似是collector.Start有一个循环不断去收集数据,但该循环在部分情况下没有阻塞在 c.Collect,导致循环空转CPU占用极高

  • 未开启 collectTracing 时,tracing.Collect 直接返回 nil
  • info.Collect 请求版本信息后就返回 nil 了,导致一直在循环请求版本信息,clash本身的CPU占用也因此升高

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.