Skip to content

Feature Request - Add Logging #336

@neevnuv

Description

@neevnuv

Issue

Currently, the only log the prom-label-proxy outputs is Listening insecurely on [::]:8080. When I try to debug the container I don't have much. A previous issue has been opened in the past and closed - #23

Solution Proposal

Add a flag of verbosity to the cli. Use a golang module (kube-rbac-proxy uses klog - https://github.com/kubernetes/klog) to print logs through the code to allow debugging it with different verbosity levels.

Things we might want to log:

Errors

Any HTTP errors that rise when querying the prom-label-proxy

Warning

Queries that dropped labels
Deprecated flags used

Info

Enabled flags on startup.

Debug

All the queries, with the URL endpoint. Maybe with headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions