-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Weifeng Wang <[email protected]> update traces Signed-off-by: Weifeng Wang <[email protected]> kubernetes(read-write-mode):update mimir Signed-off-by: Weifeng Wang <[email protected]> kubernetes(read-write-mode):update mimir Signed-off-by: Weifeng Wang <[email protected]> kubernetes(read-write-mode):update mimir Signed-off-by: Weifeng Wang <[email protected]> kubernetes(monolithic-mode):update mimir Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
69 changed files
with
290,438 additions
and
65,280 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
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
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
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
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
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,47 @@ | ||
/* | ||
The following example shows using the default all logs processing module, for | ||
a single tenant and specifying the destination url/credentials via environment | ||
variables. | ||
*/ | ||
logging { | ||
level = coalesce(env("AGENT_LOG_LEVEL"), "info") | ||
format = "logfmt" | ||
} | ||
|
||
module.file "lgtmp" { | ||
filename = coalesce(env("AGENT_CONFIG_FOLDER"), "/etc/agent-modules") + "/lgtmp.river" | ||
|
||
arguments { | ||
cluster = coalesce(env("CLUSTER"), "k3d-k3s-codelab") | ||
logs_endpoint = coalesce(env("LOGS_ENDPOINT"), "http://nginx.gateway.svc:3100") | ||
metrics_endpoint = coalesce(env("METRICS_ENDPOINT"), "http://nginx.gateway.svc:8080") | ||
profiles_endpoint = coalesce(env("PROFILES_ENDPOINT"), "http://nginx.gateway.svc:4040") | ||
traces_endpoint = coalesce(env("TRACES_ENDPOINT"), "nginx.gateway.svc:4317") | ||
} | ||
} | ||
|
||
/******************************************** | ||
* Logs | ||
********************************************/ | ||
module.git "logs_primary" { | ||
repository = "https://github.com/grafana/agent-modules.git" | ||
revision = "main" | ||
path = "modules/kubernetes/logs/all.river" | ||
|
||
arguments { | ||
forward_to = [module.file.lgtmp.exports.logs_receiver] | ||
} | ||
} | ||
|
||
/******************************************** | ||
* Agent Integrations | ||
********************************************/ | ||
module.file "agent_integrations" { | ||
filename = coalesce(env("AGENT_CONFIG_FOLDER"), "/etc/agent-modules") + "/integrations.river" | ||
|
||
arguments { | ||
name = "agent-integrations" | ||
namespace = "monitoring-system" | ||
forward_to = [module.file.lgtmp.exports.metrics_receiver] | ||
} | ||
} |
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
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
Oops, something went wrong.