-
Notifications
You must be signed in to change notification settings - Fork 483
Description
Is your feature request related to a problem? Please describe.
Pixie (Cloud + Vizier) is composed of many services, all of which default to the info logging level. As a result, these services generate a high volume of logs over time, which significantly increases logging costs on cloud providers. In some cases, logging costs can exceed compute costs such as CPU and memory.
For system workloads like Pixie, it would be advantageous to use a more restrictive logging level (e.g., error) to reduce noise and control operational costs. However, the logging level appears to be hard-coded to info in the source code.
Describe the solution you'd like
Ideally, the logging level should be configurable at runtime, preferably via environment variables or command-line arguments. This would allow cluster operators to adjust verbosity according to their needs without modifying the source code.
From my initial review, this file would likely need to be updated:
https://github.com/pixie-io/pixie/blob/HEAD/src/shared/services/logging.go#L42-L42
I have not yet investigated deeper for potential compatibility concerns, but I would be interested in contributing if the change is feasible.
Describe alternatives you've considered
One alternative considered was configuring Fluent Bit to filter out info logs emitted by Pixie pods on GKE. However, this approach has not been tested and is less ideal than having the logging level controlled directly by Pixie components.