当前位置:网站首页>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边栏推荐
猜你喜欢

【MySQL必知必会】 范式 | ER模型

Recommendation system: collection of user "behavioral data" [use Kafka and Cassandra to process data] [if it overlaps with business data, it also needs to be collected independently]

App测试需要测什么

畅玩西安全攻略

API 接口批量测试

错误:“filesystem“ 不是 “std“ 的成员

【LeetCode每日一题】——404.左叶子之和

经济衰退时期的对比:如今更像历史上的哪段时期?

vscode 工作区配置插件 配置不同工作环境

nacos的共享配置和扩展配置
随机推荐
go grpc 自定义拦截器
SSM integration case
LeetCode 2348. Number of all-zero subarrays
Elephant Swap:借助ePLATO提供加密市场的套利空间
CMake Tutorial 巡礼(1)_基础的起点
How to set up hybrid login in SQL server in AWS
[QNX Hypervisor 2.2用户手册]9.12 预留
综合设计一个OPPO页面--返回顶部使用--使用链接的锚点a+id
新型海上风电机组及压缩空气储能系统的建模与控制(Matlab代码实现)
App测试需要测什么
The Rising Star of Interface Test Automation-YApi Interface Management Platform
The role of interface testing
go 双向流模式
SwiftUI SQLite Database Storage Tutorial Collection (2022 Edition)
Leetcode68. 文本左右对齐
What to test for app testing
LeetCode 2352. Equal Row Column Pairs
经济衰退时期的对比:如今更像历史上的哪段时期?
华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘
「MySQL」- 基础增删改查