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.
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 - #23Solution 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.