当前位置:网站首页>consul operation
consul operation
2022-07-30 01:50:00 【Hold jong jong)】
Add, delete, modify and check consul
Add
vim tmp.json
{"id": "hostname","name": "kafka-exporter","address": "172.188.143.2","port": 9308,"meta":{"env":"prd","project":"vms","service":"kafka","remark":"---"},"checks": [{"http": "http://172.188.143.2:9308/metrics","interval": "5s"}]}Note:
- name: Indicates the name of the service
- id: cannot be repeated, you can delete a record by specifying the id later
Add:
## Newcurl -X PUT -d @tmp.json "http://127.0.0.1:8500/v1/agent/service/register?replace-existing-checks=1"## Modification and addition are consistent with sending a put requestcurl -X PUT -d @2-tmp.json "http://127.0.0.1:8500/v1/agent/service/register?replace-existing-checks=1"Delete
### deletecurl --request PUT http://127.0.0.1:8500/v1/agent/service/deregister/kafka-exporter边栏推荐
猜你喜欢
随机推荐
Postgresql daily operation and maintenance skills, suitable for beginners
小白必看|不用编程的labview,ATECLOUD完全满足你的需求
el-table加合计
Self-study HarmonyOS application development (56) - Use Service to ensure that the application runs continuously in the background
机械设备制造企业如何借助ERP系统,解决成本核算难题?
sublime 背景透明度以及列编辑
Typora transparent background image
气路旋转连接器怎么用
English语法_不定代词 -some & any
性能测试理论1 | 性能测试难点问题梳理
mysql 报错 is too long for user name (should be no longer than 16)
【VMWARE--共享文件】
微信小程序开发之图片压缩方案
API interface batch test
实习经历梳理
数据流图、数据字典
Fabric Private Data Case
The Rising Star of Interface Test Automation-YApi Interface Management Platform
Sublime does background transparency and column editor
ufw set firewall rules









