【问题标题】:Calculate Prometheus volume size to store metrics计算 Prometheus 卷大小以存储指标
【发布时间】:2020-12-23 09:12:04
【问题描述】:

我们正在使用 prometheus 运算符,现在我们想将数据存储在磁盘上, 有一个博客对此进行了解释,但不确定来自查询的数字/大小响应

https://www.robustperception.io/how-much-disk-space-do-prometheus-blocks-use

我在 Prometheus 查询 UI 中使用

速率(prometheus_tsdb_compaction_chunk_size_bytes_sum[24h])/速率(prometheus_tsdb_compaction_chunk_samples_sum[24h])

得到值

endpoint="web",instance="100.96.10.7:9090",job="per-prometheus",namespace="monitoring",pod="per-prometheus-1",service="per-prometheus"} 

0.9017483000151686

{endpoint="web",instance="100.96.7.10:9090",job="per-prometheus",namespace="monitoring",pod="per-prometheus-0",service="per-prometheus"}

值 = 0.880271256152723

我的问题是这个数字是多少,它的大小以 GB 为单位吗?

0.88027125615272 + 0.9017483000151686 = 1.8 GB吗?

【问题讨论】:

    标签: prometheus prometheus-operator


    【解决方案1】:

    这个数字是每个样本的字节数。将数字设为 0.9,这意味着如果您每秒摄取 1000 个样本,则以每天 .9*1000*86400 = ~75MB 为例。

    【讨论】:

    • 非常感谢。我怎么知道我们每秒运行多少样本?我们正在使用开箱即用 github.com/prometheus-community/helm-charts/tree/main/charts/…
    • 如果我检查头部我得到以下Head chunks 798243 Head time series 485655 WAL corruptions 0 Goroutines 323 GOMAXPROCS 8
    • 能否请您告知样品的数量?这是我唯一想念的东西
    猜你喜欢
    • 2020-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多