当前位置:网站首页>Prometheus API deletes all data of a specified job
Prometheus API deletes all data of a specified job
2022-07-07 16:23:00 【shy_ snow】
modify job Of name Later, I found that the data was repeated , Don't want to delete all the data , Just want to delete one of them job Previous data , I saw it on the Internet api You can delete .
First , To pass the prometheus Launch parameters –web.enable-admin-api To open admin HTTP API The interview of .
# stop it prometheus
ps -ef |grep -v grep | grep prometheus.yml | awk '{print $2}' | xargs kill
# increase --web.enable-admin-api Post start prometheus
nohup /home/xxx/prometheus-2.25.2.linux-amd64/prometheus --config.file=prometheus.yml --web.enable-admin-api --web.enable-lifecycle > nohup.out 2>&1 &
Then you can choose the appropriate way to delete the data :
# Delete all time series indicators that match a tag
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={kubernetes_name="redis"}'
# Delete job Task or instance Data indicators of :
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={job="youjobname"}'
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={instance="192.168.129.110:9090"}'
#Prometheus Delete all data in , You can use the following command :
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={__name__=~".+"}'
边栏推荐
- Continuous creation depends on it!
- pycharm 终端部启用虚拟环境
- Asyncio concept and usage
- 融云斩获 2022 中国信创数字化办公门户卓越产品奖!
- Vs tool word highlight with margin
- A JS script can be directly put into the browser to perform operations
- Regular expression string
- Notification uses full resolution
- ThinkPHP URL 路由简介
- Leetcode-136- number that appears only once (solve with XOR)
猜你喜欢

Power of leetcode-231-2

Unity3D_ Class fishing project, bullet rebound effect is achieved

Talk about the cloud deployment of local projects created by SAP IRPA studio

星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
![Unity drawing plug-in = = [support the update of the original atlas]](/img/b0/92114ffb1f168a1f27125db46c6797.jpg)
Unity drawing plug-in = = [support the update of the original atlas]

Rongyun won the 2022 China Xinchuang digital office portal excellence product award!

Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!

融云斩获 2022 中国信创数字化办公门户卓越产品奖!

Three. JS introductory learning notes 19: how to import FBX static model

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
随机推荐
torch. Numel action
Laravel constructor and middleware execution order
Continuous creation depends on it!
MySQL数据库基本操作-DQL-基本查询
模仿企业微信会议室选择
01tire+链式前向星+dfs+贪心练习题.1
JS 模块化
强化实时数据管理,英方软件助力医保平台安全建设
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
asyncio 概念和用法
深度之眼(六)——矩阵的逆(附:logistic模型一些想法)
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
IP地址和物理地址有什么区别
招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
SPI master rx time out中断
Talk about the cloud deployment of local projects created by SAP IRPA studio
Mysql database basic operation DQL basic query
记一次项目的迁移过程
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会