Mark Fickett
06/01/2022, 8:44 PM$DAGSTER_HOME/dagster.yaml
? Looking for managed_python_loggers
and dagster_handler_config
in particular. I packaged my dagster.yaml
into my Docker image and set DAGSTER_HOME
but the custom log handling is not being applied.rex
06/01/2022, 8:46 PMMark Fickett
06/02/2022, 3:27 PMhelm show values dagster-cloud/dagster-cloud-agent > values.yaml
Then I edited values.yaml
and added in my logging:
python_logs:
pythonLogLevel: INFO
managedPythonLoggers:
# Capture logs from all Python loggers into Dagster's UI.
- root
# Specify additional handlers for the console logs (which include all Python logs too).
dagsterHandlerConfig:
handlers:
combinedJson:
class: processing.common.log.JsonFileHandler
level: INFO
otelSpan:
class: processing.common.log.OtelSpanEventHandler
level: INFO
And finally tried to update the agent with those values:
helm upgrade --install user-cloud dagster-cloud/dagster-cloud-agent --namespace dagster-cloud -f values.yaml
However, when I run (a) a job that doesn't have my custom handlers it still works fine, and (b) the job that does have those handlers in its image, they don't seem to take effect.daniel
06/02/2022, 3:37 PMmanagedPythonLoggers:
# Capture logs from all Python loggers into Dagster's UI.
- root
daniel
06/02/2022, 3:38 PMMark Fickett
06/02/2022, 3:40 PMhelm show values
again and what I set didn't show up, so I think the issue may be with my helm calls (totally new territory for me).Mark Fickett
06/02/2022, 4:02 PMhelm show values dagster-cloud/dagster-cloud-agent > values.yaml
is actually just pulling the defaults, so settings wouldn't echo back. I see that my deployment value from values.yaml
is taking effect as expected. (I've also set up a 2nd deployment so I can keep my agents separate, very easy to do!)rex
06/02/2022, 4:04 PMhelm get values user-cloud -n dagster-cloud
where user-cloud
is the name of your release, and dagster-cloud
is your namespaceMark Fickett
06/02/2022, 4:13 PMlower_under
case that is in dagster.yaml
to the camelCase
that's in the Helm chart. Now It's picking up my log customization. Thanks for all the help!