tempo-operator
tempo-operator copied to clipboard
Make log level configurable
The log level is set as CMD argument. It would be helpful to expose it in the CRD e.g. in the observability spec https://github.com/grafana/tempo-operator/blob/754a9adb68bb8261f1c0eaac3ec8e9e6a8d8730d/apis/tempo/v1alpha1/tempostack_types.go#L122
Related PR to make it easier to change the log level for ad-hoc debug sessions using unmanaged mode: https://github.com/grafana/tempo-operator/pull/550
Guys, can I get this one?
Guys, can I get this one?
We have multiple components (operator, tempo, tempoQuery, tempoGateway, tempoGatewayOpa) - should we have one setting to change the log level for all components? One setting per component?
Currently you can switch the Tempo CR to Unmanaged mode, and edit the -log.level CLI argument of the deployment/statefulset you want to debug. imho this is an efficient way to debug the instance (e.g. you can also change the command of the pod, etc.), what do you think? Is an additional field in the CR required?
@andreasgerstmayr, I believe we could keep both, the CLI parameters and add a new logLevel to the ObservabilitySpec which will work as a global loglevel as well.