title: "mz-debug self-managed" description: Use mz-debug to debug Materialize self-managed Materialize Kubernetes environments. menu: main:
parent: mz-debug
weight: 10
mz-debug self-managed
debugs Kubernetes-based Materialize deployments. It
collects:
Logs and resource information from pods, daemonsets, and other Kubernetes resources.
Snapshots of system catalog tables from your Materialize instance.
By default, the tool will automatically port-forward to collect system catalog information. You can disable this by setting --auto-port-forward false
and specifying your own connection URL via --mz-connection-url
.
mz-debug
requires kubectl
v1.32.3+. Install kubectl if you do
not have it installed.
mz-debug self-managed [OPTIONS]
mz-debug self-managed
options{{< yaml-table data="mz-debug/self_managed_options" >}}
mz-debug
global options{{< yaml-table data="mz-debug/mz_debug_option" >}}
The mz-debug
outputs its log file (tracing.log
) and the generated debug
files into a directory named mz_debug_YYYY-MM-DD-HH-TMM-SSZ/
as well as zips
the directory and its contents mz_debug_YYYY-MM-DD-HH-TMM-SSZ.zip
.
The generated debug files are in two main categories: Kubernetes resource files and system catalog files.
Under mz_debug_YYYY-MM-DD-HH-TMM-SSZ/
, the following Kubernetes resource debug
files are generated:
{{< yaml-table data="mz-debug/kubernetes_resource_files" >}}
Each resource type directory also contains a describe.txt
file with the output of kubectl describe
for that resource type.
{{% integrations/mz-debug/system-catalog-files %}}
{{% integrations/mz-debug/prometheus-files %}}
{{% integrations/mz-debug/memory-profiles %}}
materialize-environment
namespacemz-debug self-managed --k8s-namespace materialize-environment
materialize
namespacemz-debug --dump-system-catalog=false self-managed --k8s-namespace materialize --auto-port-forward false
mz-debug self-managed \
--k8s-namespace materialize \
--k8s-namespace materialize-environment \
--auto-port-forward false \
--mz-connection-url 'postgres://root@127.0.0.1:6875/materialize?sslmode=disable'
Because the materialize
namespace does not contain Materialize instances, the
debug tool will be unable to dump the system catalog.