Oops ;)
[@test2 image-synapse]$ dig +short @192.168.10.14
_metrics._synapse.dev._tcp.marathon.mesos SRV
0 1 31032 synapse.dev-nppzf-s0.marathon.mesos.
-----Original Message-----
To: user
Subject: getting correct metrics port from SRV records.
Is there a way to identify the correct port via dns? I have created a
task with two ports[1]. But a dns srv query does not show anything
different than the port number. How can I identify the correct port?
Mesos-master tasks endpoint[3] shows the port names, is there a way to
get these from dns?
[1]
"networks": [ { "mode": "host"} ],
"portDefinitions": [{"port": 0, "name": "https", "protocol": "tcp"},
{"port": 0, "name": "metrics", "protocol": "tcp"}]
[2]
[@test2 image-synapse]$ dig +short @192.168.10.14
_synapse.dev._tcp.marathon.mesos SRV
0 1 31031 synapse.dev-nppzf-s0.marathon.mesos.
0 1 31032 synapse.dev-nppzf-s0.marathon.mesos.
[3]
mesos-master /tasks/
"discovery": {
"visibility": "FRAMEWORK",
"name": "synapse.dev",
"ports": {
"ports": [
{
"number": 31031,
"name": "https",
"protocol": "tcp"
},
{
"number": 31032,
"name": "metrics",
"protocol": "tcp"
}
]
}
},