【问题标题】:prometheus (or grafana) query to evaluate storage used by grafana loki?prometheus(或grafana)查询来评估grafana loki使用的存储?
【发布时间】:2021-10-12 19:13:38
【问题描述】:

如何通过prometheus查询计算grafana loki使用的存储空间?是否有特定的指标来监控这一点?

我使用 HELM 图表来安装 loki 作为 helm 图表,因此它会写入节点的存储。我猜它正在使用 boltdb-shipper。

helm repo add grafana https://grafana.github.io/helm-charts
helm repo update

helm upgrade --install promtail grafana/promtail \
    --create-namespace \
    --namespace monitoring \
    --values cluster/production/charts/loki/values.promtail.yaml 

helm upgrade --install loki grafana/loki \
    --create-namespace \
    --namespace monitoring \
    --values cluster/production/charts/loki/values.loki.yaml 

【问题讨论】:

    标签: prometheus grafana grafana-loki


    【解决方案1】:

    这些指标可以帮助您:

    # HELP loki_ingester_chunk_size_bytes Distribution of stored chunk sizes (when stored).
    # TYPE loki_ingester_chunk_size_bytes histogram
    loki_ingester_chunk_size_bytes_bucket
    loki_ingester_chunk_size_bytes_sum
    loki_ingester_chunk_size_bytes_count
    # HELP loki_ingester_chunk_stored_bytes_total Total bytes stored in chunks per tenant.
    # TYPE loki_ingester_chunk_stored_bytes_total counter
    loki_ingester_chunk_stored_bytes_total
    

    【讨论】:

      猜你喜欢
      • 2020-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-25
      • 2021-10-16
      • 2021-03-20
      • 2019-10-15
      • 2020-12-17
      相关资源
      最近更新 更多