当前位置:网站首页>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__=~".+"}'
边栏推荐
- 强化实时数据管理,英方软件助力医保平台安全建设
- Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
- Communication mode between application program and MATLAB
- Laravel service provider instance tutorial - create a service provider test instance
- js中复选框checkbox如何判定为被选中
- How does laravel run composer dump autoload without emptying the classmap mapping relationship?
- AE learning 02: timeline
- Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
- 招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
- Laravel5.1 路由 -路由分组
猜你喜欢
SPI master RX time out interrupt
Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo
Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
预测——灰色预测
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
分步式监控平台zabbix
The unity vector rotates at a point
Numpy --- basic learning notes
随机推荐
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
SPI master rx time out中断
目标跟踪常见训练数据集格式
Unity3D_ Class fishing project, bullet rebound effect is achieved
Balanced binary tree (AVL)
Use moviepy Editor clips videos and intercepts video clips in batches
JS modularization
U3D_ Infinite Bessel curve
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
The differences between exit, exit (0), exit (1), exit ('0 '), exit ('1'), die and return in PHP
MySQL中, 如何查询某一天, 某一月, 某一年的数据
Communication mode between application program and MATLAB
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
What about the pointer in neural network C language
华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现
Xcode Revoke certificate
招标公告:盘锦市人民医院盘锦医院数据库维保项目
强化实时数据管理,英方软件助力医保平台安全建设
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems