-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from qclaogui:profiles-ingestion-via-labels
Docker Compose(profiles): Profiles Ingestion via Labels
- Loading branch information
Showing
7 changed files
with
726 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docker-compose/common/config/agent-flow/modules/docker/profiles/all.river
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
Module: profiles-all | ||
Description: Wrapper module to include all Docker containers metric modules | ||
*/ | ||
argument "forward_to" { | ||
comment = "Must be a list(profilessReceiver) where collected profiles should be forwarded to" | ||
} | ||
|
||
argument "tenant" { | ||
comment = "The tenant to filter logs to. This does not have to be the tenantId, this is the value to look for in the logs.agent.grafana.com/tenant annotation, and this can be a regex." | ||
optional = true | ||
} | ||
|
||
argument "clustering" { | ||
// Docs: https://grafana.com/docs/agent/latest/flow/concepts/clustering/ | ||
comment = "Whether or not clustering should be enabled (default: true)" | ||
} | ||
|
||
module.file "mf_profiles_auto_scrape" { | ||
filename = coalesce(env("AGENT_CONFIG_FOLDER"), "/etc/agent-config") + "/modules/docker/profiles/profiles-auto-scrape.river" | ||
|
||
arguments { | ||
forward_to = argument.forward_to.value | ||
tenant = coalesce(argument.tenant.value, ".*") | ||
clustering = coalesce(argument.clustering.value, "true") | ||
} | ||
} |
Oops, something went wrong.