Giter Site home page Giter Site logo

Comments (5)

zxh326 avatar zxh326 commented on September 24, 2024

datasource 需要去 grafana 设置 中手动加一下

from clash-exporter.

fuzhengyin avatar fuzhengyin commented on September 24, 2024

解决了,并且添加prometheus 时需要使用prometheus:9090 访问
clash-exporter 访问宿主机, 在macOs和windows 上需要使用特殊的ip:host.docker.internal
还有一个问题是

OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknow

连接不上terminal,还是说应该用别的shell

还有一个问题,应该是bug,在docker-compose 中修改collectTrace 为false 不生效,这个应该新开一个issue 吧

from clash-exporter.

zxh326 avatar zxh326 commented on September 24, 2024

连接不上terminal,还是说应该用别的shell

默认 base 镜像 使用 scratch 构建,不含有 shell,如果需要可以自行使用其他 base 镜像构建

在docker-compose 中修改collectTrace 为false 不生效

没太懂你的意思,如何改的,怎么个不生效法?

from clash-exporter.

fuzhengyin avatar fuzhengyin commented on September 24, 2024

在没有开启tracing 的状态下,把

entrypoint:
      ["/app/clash-exporter", "-collectTracing", "true", "-collectDest", "true"]

修改成

entrypoint:
      ["/app/clash-exporter", "-collectTracing", "false", "-collectDest", "true"]

然后启动clash-exporter,log 会出现

log.Fatal("profile tracing is not enabled in Clash, please enable it first, or use `-collectTracing=false` disable this collector. \nFYI: https://github.com/Dreamacro/clash/wiki/Clash-Premium-Features#tracing")

from clash-exporter.

zxh326 avatar zxh326 commented on September 24, 2024

在没有开启tracing 的状态下,把

entrypoint:
      ["/app/clash-exporter", "-collectTracing", "true", "-collectDest", "true"]

修改成

entrypoint:
      ["/app/clash-exporter", "-collectTracing", "false", "-collectDest", "true"]

然后启动clash-exporter,log 会出现

log.Fatal("profile tracing is not enabled in Clash, please enable it first, or use `-collectTracing=false` disable this collector. \nFYI: https://github.com/Dreamacro/clash/wiki/Clash-Premium-Features#tracing")

好的,我晚点看一下

from clash-exporter.

Related Issues (10)

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.