【问题标题】:Prometheus: Get total amount of data sent over network by prometheus queriesPrometheus:获取 prometheus 查询通过网络发送的数据总量
【发布时间】:2020-08-14 12:34:14
【问题描述】:

我正在尝试估计由于 Prometheus 查询而通过我们的网络发送了多少数据。这部分是因为我们希望将更多查询转移到 thanos,这意味着来自 s3 的更多出口流量和随之而来的更多成本。

prometheus_http_response_size_bytes_sum 是否适合作为此查询的基础?也许是这样的? sum(increase(prometheus_http_response_size_bytes_sum[30d]))

查询将直接来自 prometheus ui 以及来自 grafana。

【问题讨论】:

    标签: performance monitoring prometheus


    【解决方案1】:

    是的,prometheus_http_response_size_bytes_sum 应该涵盖所有 HTTP API 流量。

    请记住,虽然 Prometheus 从磁盘读取数据,但该指标不会涵盖需要使用 Thanos 从 S3 读取的数据。

    【讨论】:

      猜你喜欢
      • 2022-01-06
      • 1970-01-01
      • 2021-03-20
      • 1970-01-01
      • 1970-01-01
      • 2019-06-06
      • 1970-01-01
      • 2021-06-19
      • 1970-01-01
      相关资源
      最近更新 更多