Skip to content

Commit 724fdf9

Browse files
committed
default to Marathon auto-follow
1 parent e390854 commit 724fdf9

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

userspace/libsinsp/sinsp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ void sinsp::init_mesos_client(string* api_server, bool verbose)
16081608
m_marathon_api_server,
16091609
mesos::default_groups_api,
16101610
mesos::default_apps_api,
1611-
false, // no leader follow
1611+
m_marathon_api_server.empty(), // leader auto-follow if no uri
16121612
mesos::default_timeout_ms,
16131613
is_live,
16141614
m_verbose_json);

userspace/sysdig/man/csysdig.8

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,19 @@ Print program logs into the given file.
419419
Enable Mesos support by connecting to the API server specified as
420420
argument (e.g.
421421
<http://admin:password@127.0.0.1:5050>).
422-
Marathon url is optional and defaults to Mesos address, port 8080.
422+
Mesos url is required.
423+
Marathon url is optional, defaulting to auto\-follow \- if Marathon API
424+
server is not provided, sysdig will attempt to retrieve (and
425+
subsequently follow, if it migrates) the location of Marathon API server
426+
from the Mesos master.
427+
Note that, with auto\-follow, sysdig will likely receive a cluster
428+
internal IP address for Marathon API server, so running sysdig with
429+
Marathon auto\-follow from a node that is not part of Mesos cluster may
430+
not work.
431+
Additionally, running sydig with Mesos support on a node that has no
432+
containers managed by Mesos is of limited use because, although cluster
433+
metadata will be collected, there will be no Mesos/Marathon filtering
434+
capability.
423435
The API servers can also be specified via the environment variable
424436
SYSDIG_MESOS_API.
425437
.PP

userspace/sysdig/man/csysdig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ COMMAND LINE OPTIONS
182182
Print program logs into the given file.
183183

184184
**-m** _url[,marathon-url]_, **--mesos-api=**_url[,marathon-url]_
185-
Enable Mesos support by connecting to the API server specified as argument (e.g. http://admin:password@127.0.0.1:5050). Marathon url is optional and defaults to Mesos address, port 8080. The API servers can also be specified via the environment variable SYSDIG_MESOS_API.
185+
Enable Mesos support by connecting to the API server specified as argument (e.g. http://admin:password@127.0.0.1:5050). Mesos url is required. Marathon url is optional, defaulting to auto-follow - if Marathon API server is not provided, sysdig will attempt to retrieve (and subsequently follow, if it migrates) the location of Marathon API server from the Mesos master. Note that, with auto-follow, sysdig will likely receive a cluster internal IP address for Marathon API server, so running sysdig with Marathon auto-follow from a node that is not part of Mesos cluster may not work. Additionally, running sydig with Mesos support on a node that has no containers managed by Mesos is of limited use because, although cluster metadata will be collected, there will be no Mesos/Marathon filtering capability. The API servers can also be specified via the environment variable SYSDIG_MESOS_API.
186186

187187
**-N**
188188
Don't convert port numbers to names.

userspace/sysdig/man/sysdig.8

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,19 @@ Use \-lv to get additional information for each field.
397397
Enable Mesos support by connecting to the API server specified as
398398
argument (e.g.
399399
<http://admin:password@127.0.0.1:5050>).
400-
Marathon url is optional and defaults to Mesos address, port 8080.
400+
Mesos url is required.
401+
Marathon url is optional, defaulting to auto\-follow \- if Marathon API
402+
server is not provided, sysdig will attempt to retrieve (and
403+
subsequently follow, if it migrates) the location of Marathon API server
404+
from the Mesos master.
405+
Note that, with auto\-follow, sysdig will likely receive a cluster
406+
internal IP address for Marathon API server, so running sysdig with
407+
Marathon auto\-follow from a node that is not part of Mesos cluster may
408+
not work.
409+
Additionally, running sydig with Mesos support on a node that has no
410+
containers managed by Mesos is of limited use because, although cluster
411+
metadata will be collected, there will be no Mesos/Marathon filtering
412+
capability.
401413
The API servers can also be specified via the environment variable
402414
SYSDIG_MESOS_API.
403415
.PP

userspace/sysdig/man/sysdig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ OPTIONS
154154
List the fields that can be used for filtering and output formatting. Use -lv to get additional information for each field.
155155

156156
**-m** _url[,marathon-url]_, **--mesos-api=**_url[,marathon-url]_
157-
Enable Mesos support by connecting to the API server specified as argument (e.g. http://admin:password@127.0.0.1:5050). Marathon url is optional and defaults to Mesos address, port 8080. The API servers can also be specified via the environment variable SYSDIG_MESOS_API.
157+
Enable Mesos support by connecting to the API server specified as argument (e.g. http://admin:password@127.0.0.1:5050). Mesos url is required. Marathon url is optional, defaulting to auto-follow - if Marathon API server is not provided, sysdig will attempt to retrieve (and subsequently follow, if it migrates) the location of Marathon API server from the Mesos master. Note that, with auto-follow, sysdig will likely receive a cluster internal IP address for Marathon API server, so running sysdig with Marathon auto-follow from a node that is not part of Mesos cluster may not work. Additionally, running sydig with Mesos support on a node that has no containers managed by Mesos is of limited use because, although cluster metadata will be collected, there will be no Mesos/Marathon filtering capability. The API servers can also be specified via the environment variable SYSDIG_MESOS_API.
158158

159159
**-N**
160160
Don't convert port numbers to names.

0 commit comments

Comments
 (0)