--zap-devel
flag to the spec.containers.args
field in the collector manager deployment, you can enable debug logs. This increases log verbosity and provides more insight into potential issues.
Running the collector manager with
--zap-devel
enabled is not recommended for regular operation. Use this mode only for diagnosing and resolving issues.Steps to enable verbose logging
1
Identify the collector manager deployment
Run the following command to list deployments in the Example output:
plerion-system
namespace:2
Edit the deployment configuration
Open the collector manager deployment in your editor:
3
Add the --zap-devel flag
In the editor, locate the collector manager container spec and add the
args
section:4
Save and exit the editor
Save the changes and exit the editor. The deployment will restart with verbose logging enabled.
Example verbose log output
With the--zap-devel
flag enabled, the collector manager generates more detailed logs.
Example:
Log analysis
Verbose logs can help identify root causes of issues. Key entries include:- GOMAXPROCS update: System adjusts CPU allocation based on quota.
- Controller initialization: Collector manager starts and fetches tenant configuration.
- HTTP request details: Debugging information about API calls, including method, URL, and response code. Any response other than
200
or204
should be investigated. - Metrics server setup: Confirms the metrics server is running on port
8080
. - Leader lease acquisition: Shows attempts and success in acquiring the Kubernetes leader lease.
- Worker initialization: Indicates that the controller components have successfully started.