Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Proposal: Allow Runtime Configuration of Pixie Logging Level (Env Vars or CLI Flags) #2280

Open
@lucascicco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /