Git Product home page Git Product logo

Comments (4)

zxh326 avatar zxh326 commented on August 27, 2024

你是指下面的总流量吗

from clash-exporter.

LakeishaKowalczyk avatar LakeishaKowalczyk commented on August 27, 2024

你是指下面的总流量吗

就是右上角可以选择 time range,我的理解是选择时间区间后下面的数据就只统计区间内的数据
大部分数据似乎都没有按照预期的工作,比如总下载量、总上传量、客户端总流量、代理总流量这些
选择 Last 5 minutes 感受最明显,数据量应该会小很多,但版面的内容几乎没有变化的

from clash-exporter.

zxh326 avatar zxh326 commented on August 27, 2024

你是指下面的总流量吗

就是右上角可以选择 time range,我的理解是选择时间区间后下面的数据就只统计区间内的数据 大部分数据似乎都没有按照预期的工作,比如总下载量、总上传量、客户端总流量、代理总流量这些 选择 Last 5 minutes 感受最明显,数据量应该会小很多,但版面的内容几乎没有变化的

对 这里的总 就是总的意思(开始收集以来的总流量),没有按 range 算。 这么做的一方面考虑是 metrics 量太大了,会给 prometheus 带来不小的压力。所以用的都是瞬时的总流量。

不过数据都是有的,你可以尝试自己画一个。比如目的地总流量可以改这这样即可。

topk(10, sort_desc(sum by (destination) (increase(clash_network_traffic_bytes_total{source=~"$source", policy=~"$policy",type=~"$type"}[$__range]))))

from clash-exporter.

LakeishaKowalczyk avatar LakeishaKowalczyk commented on August 27, 2024

感谢帮助

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.