Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy: Only generate debug messages in debug mode #6228

Merged
merged 3 commits into from
Mar 23, 2023

Commits on Mar 22, 2023

  1. Proxy: Only generate debug messages in debug mode

    In debug mode we log information about which endpoints we skip and
    query, including the labels of each endpoint. These debug messages, can
    use significant memory, especially in larger setups with larger number
    of labelsets.
    
    Previously we would generate the debug messages, even when not in debug
    mode. With commit, we only generate the debug messages when debug
    logging is enabled.
    
    This fixes: thanos-io#6198
    
    Signed-off-by: Jacob Baungard Hansen <[email protected]>
    jacobbaungard committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0425274 View commit details
    Browse the repository at this point in the history
  2. Address review comments

    - Consistent variable naming
    - Also do conditional debug logging generation in: `LabelNames()` and
      `LabelValues`
    - Use builder pattern for additional variables
    
    Signed-off-by: Jacob Baungard Hansen <[email protected]>
    jacobbaungard committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    ccdb2c3 View commit details
    Browse the repository at this point in the history
  3. Make linter happy

    Signed-off-by: Jacob Baungard Hansen <[email protected]>
    jacobbaungard committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    ebaf19b View commit details
    Browse the repository at this point in the history