diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-21 21:09:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-21 21:09:35 +0300 |
commit | f0ccbae4dc1d8356a99f9b97361414aeb9a82337 (patch) | |
tree | 1b2e1637355e23ba2cb3424fe7dd5e57d12ba86b /doc/user/clusters/agent/work_with_agent.md | |
parent | c39912f5538caca913374a8983adffc234b3f1c9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/clusters/agent/work_with_agent.md')
-rw-r--r-- | doc/user/clusters/agent/work_with_agent.md | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/user/clusters/agent/work_with_agent.md b/doc/user/clusters/agent/work_with_agent.md index 75c0126b772..058243ec218 100644 --- a/doc/user/clusters/agent/work_with_agent.md +++ b/doc/user/clusters/agent/work_with_agent.md @@ -53,24 +53,32 @@ View and provide feedback about the UI in [this epic](https://gitlab.com/groups/ ## Debug the agent +> The `grpc_level` was [introduced](https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/merge_requests/669) in GitLab 15.1. + To debug the cluster-side component (`agentk`) of the agent, set the log level according to the available options: -- `off` -- `warning` - `error` +- `warning` - `info` - `debug` -The log level defaults to `info`. You can change it by using a top-level `observability` -section in the [agent configuration file](install/index.md#configure-your-agent), for example setting the level to `debug`: +The agent has two loggers: + +- A general purpose logger, which defaults to `info`. +- A gRPC logger, which defaults to `error`. + +One can change their log levels by using a top-level `observability` section in the [agent configuration file](install/index.md#configure-your-agent), for example setting the levels to `debug` and `warning`: ```yaml observability: logging: level: debug + grpc_level: warning ``` +When `grpc_level` is set to `info` or below, there will be a lot of gRPC logs. + Commit the configuration changes and inspect the agent service logs: ```shell |