A
A
Anton2019-07-09 11:11:48
System administration
Anton, 2019-07-09 11:11:48

Why are some fields not visible when registering a service in Consul?

There is a grafana.json file with a description of the service

{
  "Name": "Grafana",
  "Address": "10.233.87.165",
  "Port": 5325
}

Registering a service
curl -XPUT -d @grafana.json 127.0.0.1:8500/v1/agent/service/register

Get service description
[
  {
    "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
  }
]

Why is the Port field not visible when registering a service in Consul?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Papa, 2019-07-09
Stifflera @PapaStifflera

"ServicePort": 5325,

And what's that?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question