From a28c3a5afa6fc99afdcdf8a7b783945ebafe6e66 Mon Sep 17 00:00:00 2001 From: Jiekun Date: Mon, 14 Oct 2024 15:38:08 +0800 Subject: [PATCH] feature: [Marathon SD] make linter happy --- lib/promscrape/discovery/marathon/apps.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/promscrape/discovery/marathon/apps.go b/lib/promscrape/discovery/marathon/apps.go index 319c3690b..bf9c84941 100644 --- a/lib/promscrape/discovery/marathon/apps.go +++ b/lib/promscrape/discovery/marathon/apps.go @@ -74,6 +74,7 @@ func (app app) isContainerNet() bool { return len(app.Networks) > 0 && app.Networks[0].Mode == "container" } +// GetAppsList randomly choose a server from the `servers` and get the list of running applications. func GetAppsList(ac *apiConfig) (*AppList, error) { c := ac.cs[rand.Intn(len(ac.cs))]