Giter Site home page Giter Site logo

Comments (12)

zxh326 avatar zxh326 commented on June 23, 2024

check prometheus config

groups:
- name: discard_destination
rules:
- record: source_policy_type:clash_network_traffic_bytes_total:sum
expr: sum without (destination, job) (clash_network_traffic_bytes_total)

rule_files:
- "/etc/prometheus/record.rules.yml"

from clash-exporter.

luckyyyyy avatar luckyyyyy commented on June 23, 2024

check prometheus config

groups:
- name: discard_destination
rules:
- record: source_policy_type:clash_network_traffic_bytes_total:sum
expr: sum without (destination, job) (clash_network_traffic_bytes_total)

rule_files:
- "/etc/prometheus/record.rules.yml"

same configuration content

from clash-exporter.

zxh326 avatar zxh326 commented on June 23, 2024

能打开 Prometheus ,然后看看 source_policy_type:clash_network_traffic_bytes_total:sum 是否有数据吗。

刚看到 你的 dns 也是空的,检查一下 tracing 是否开启。

tracing metrics is empty
Required clash premium version
Follow clash profile docs enable profile tracing
Add -collectTracing=true flag in clash-exporter start script

from clash-exporter.

luckyyyyy avatar luckyyyyy commented on June 23, 2024
image

这样?

profile:
store-selected: true
store-fake-ip: true
tracing: true

确定开了的 版本是

image

from clash-exporter.

luckyyyyy avatar luckyyyyy commented on June 23, 2024

测试了下作者提供的 是有数据的

image

from clash-exporter.

zxh326 avatar zxh326 commented on June 23, 2024

dns 或者最下面 的 tracing 数据为空

  • clash 开启 profile.tracing
  • clash-export 启动的时候加上 -collectTracing=true

中间的 Traffic statistics 数据为空

  • 检查下 Prometheus 的配置
  • 看下是否有
    source_policy_type:clash_network_traffic_bytes_total:sum metrics
image

from clash-exporter.

Dark-Existed avatar Dark-Existed commented on June 23, 2024
image image image

使用 docker compose 部署 并将 clash-exporter 添加 entrypoint: /app/clash-exporter -collectTracing=true 开启收集
dns 部分正常 下面两个 无数据

from clash-exporter.

zxh326 avatar zxh326 commented on June 23, 2024

image image image
使用 docker compose 部署 并将 clash-exporter 添加 entrypoint: /app/clash-exporter -collectTracing=true 开启收集 dns 部分正常 下面两个 无数据

dashboard 是通过 id 导入的吗?我忘了更新了

from clash-exporter.

Dark-Existed avatar Dark-Existed commented on June 23, 2024

是的 通过 id 进行导入的

from clash-exporter.

zxh326 avatar zxh326 commented on June 23, 2024

是的 通过 id 进行导入的

更新下试试,应该好了

from clash-exporter.

Dark-Existed avatar Dark-Existed commented on June 23, 2024

是的 通过 id 进行导入的

更新下试试,应该好了

可以了没问题了

from clash-exporter.

luckyyyyy avatar luckyyyyy commented on June 23, 2024

it works, thank

from clash-exporter.

Related Issues (6)

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.