普罗米修斯使用远程写入器时设备上没有剩余空间

use*_*598 2 prometheus

我正在将普罗米修斯与远程编写器一起使用:

但运行一段时间后我收到此错误。

sg =“压缩失败”err =“保留头块:写入压缩:写入块:设备上没有剩余空间”

global:
  scrape_interval:     60s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
remote_write:
  - url: "http://localhost:1234/receive"

scrape_configs:

  - job_name: 'cassandra'

    static_configs:
      - targets: ['localhost:5556']
        labels:
          instance: "server1"
Run Code Online (Sandbox Code Playgroud)

Ali*_*ean 6

然后在磁盘上留出一些空间。:o)

一个不那么尖锐的答案是,普罗米修斯在本地磁盘上保存了它收集和评估的所有数据的数据库。数据在数据库中保留的时间可以通过命令行中的--storage.tsdb.retention标志进行配置,默认为15d。您可以将其减少到您愿意的程度,但是看到您实际上如何耗尽磁盘空间,您应该认真考虑分配更多磁盘空间(或者删除一些文件,如果这是共享服务器)。