Имеется файл grafana.json с описанием сервиса
{
"Name": "Grafana",
"Address": "10.233.87.165",
"Port": 5325
}
Регистрирую сервис
curl -XPUT -d @grafana.json 127.0.0.1:8500/v1/agent/service/register
Получаю описание сервиса
[
{
"ID": "13d81c27-1d2a-a14e-5540-263859a1ba7f",
"Node": "dev-tools-consul-apatsev-4",
"Address": "10.233.47.168",
"Datacenter": "dc1",
"TaggedAddresses": {
"lan": "10.233.47.168",
"wan": "10.233.47.168"
},
"NodeMeta": {
"consul-network-segment": ""
},
"ServiceKind": "",
"ServiceID": "Grafana",
"ServiceName": "Grafana",
"ServiceTags": [],
"ServiceAddress": "10.233.87.165",
"ServiceWeights": {
"Passing": 1,
"Warning": 1
},
"ServiceMeta": {},
"ServicePort": 5325,
"ServiceEnableTagOverride": false,
"ServiceProxyDestination": "",
"ServiceProxy": {},
"ServiceConnect": {},
"CreateIndex": 1098,
"ModifyIndex": 41555
}
]
Почему при регистрации сервиса в Consul не видно поле Port?