postgresql - 使用 postgres 存储时删除 Graphite 中的系列?

标签 postgresql graphite

刚刚使用 postgres 安装了 graphite 用于存储并使用 statsd 将数据发送到 graphite。工作正常!

我的问题是我创建了一系列仅用于测试的系列(主要是仪表),我希望它们消失但无法删除它们。因为我使用的是 postgres,所以我没有要删除的 whisper 文件。

在查看 Graphite 数据库的 postgres 表时,我看不到包含该系列的任何内容。我看到了我的自定义图表和我的用户,但在 Graphite 数据库中的任何地方都找不到我的测试系列。

有什么指点吗?该系列是否未保存在 postgres 数据库中?

最佳答案

Graphite 仅使用 PostgreSQL/MySQL/SQLite 来存储用户配置文件、保存的图形和仪表板以及事件(注释式数据)。时间序列指标存储在 native Whisper 文件中。在大多数情况下,这些文件将存在于 /opt/graphite/storage/whisper/ 下。

假设您不小心发送了一个名为 foo.bar.baz 的指标。此文件将存在于 /opt/graphite/storage/whisper/foo/bar/baz.wsp 并且可以使用 sudo rm/opt/graphite/storage/从命令行中删除whisper/foo/bar/baz.wsp.

关于postgresql - 使用 postgres 存储时删除 Graphite 中的系列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39112052/

相关文章:

postgresql - 具有复合主键的表中记录的顺序是什么

string - postgresql,选择空字符串

windows - 是否可以为 Windows 7 和/或 8 创建不区分大小写的自定义区域设置?

spring-boot - 如何用 Spring Boot 启动千分尺?

api - 是否可以从控制台查询 Whisper (Graphite DB) 的数据?

graphite - 删除/清空 Graphite Whisper 文件自动重新生成

postgresql - PL/pgSQL 风格指南

python - Postgres 数据库安全 : what to store in environment variables?

graphite - 从 Graphite 中检索当前度量值

python-2.7 - Graphite Web 错误日志,OperationalError : no such table: auth_user