curl - 如何在 victoriametrics 中传递“--web.enable-admin-api”标志
问题描述
要启用删除操作,我们可能需要启用该--web.enable-admin-api'
标志,以便我们如何启用它。我目前正在使用非 docker 单节点集群版本并尝试在 curl 命令下运行
curl -X DELETE -g 'http://localhost:8481/api/v1/0/tsdb/delete_series?match[]={foo.bar.baz="bar"}'
解决方案
VictoriaMetrics 中的删除 API开箱即用。无需启用它。
看起来您的命令delete API
在单节点 VictoriaMetrics 中包含无效的端口和路径。根据文档尝试以下命令:
curl -g 'http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]={foo.bar.baz="bar"}'
请注意,match[]
arg 必须使用url encoding正确编码。否则,它可能会被不当转移到 VictoriaMetrics。
推荐阅读
- r - 折叠一个数据框列表并与 R 中的另一个数据框列表组合
- vba - 在 MS Access 中禁用过滤/未过滤和切换过滤器按钮
- jmeter - JMeter 可以在使用 Blazor 框架开发的应用程序上记录请求吗?
- sql - 使用oracle sql中的窗口函数检查分区中是否存在值
- nlp - 如何为 LayoutLM 准备自定义训练数据
- python - 使用 setuptools 的 python 替代包设置
- statistics - 如何在 Grafana 中按月创建平均值直方图?
- c# - 如何读取和查找 txt 文件中的特定信息并将其与字符串统一进行比较
- python - 在 Python Pandas 中读取带有印地语数据的 Excel
- python - MacOS 上的 pyqt5 默认本机菜单文本