| 命令 | influx delete --bucket metrics --start … --stop … [--predicate …] |
|---|---|
| 时间格式 | RFC3339,如 2024-01-01T00:00:00Z;stop 为开区间 |
| 谓词 | Flux 风格表达式,如 _measurement="cpu" AND host="web-1" |
示例
示例
influx delete --bucket metrics \
--start 2024-01-01T00:00:00Z \
--stop 2024-02-01T00:00:00Z \
--predicate '_measurement="cpu" AND host="web-1"'小范围修正用删除+重写;整段时间的清理更推荐依赖保留期,代价更低。