Enable logs
Enable logs for Gloo components so that you can review them in the Gloo UI.
Single cluster
Get your current installation Helm values, and save them in a file.
helm get values gloo-platform -n gloo-mesh -o yaml > gloo-single.yaml open gloo-single.yamlAdd the following configuration to your Helm values file to enable logs for Gloo components.
telemetryCollectorCustomization: pipelines: logs/ui: enabled: trueUpgrade your installation by using your updated values file.
helm upgrade gloo-platform gloo-platform/gloo-platform \ --namespace gloo-mesh \ --version 2.11.0 \ --values gloo-single.yamlVerify that your settings were added to the Gloo telemetry collector configmap.
kubectl get configmap gloo-telemetry-collector-config -n gloo-mesh -o yamlPerform a rollout restart of the telemetry collector daemon set to force your configmap changes to be applied to the telemetry collector agent pod.
kubectl rollout restart -n gloo-mesh daemonset/gloo-telemetry-collector-agentOpen the Gloo UI.
meshctl dashboardIn the navigation pane, click Logs. Select the cluster, component, pod, and container for which you want to see the logs.
Multicluster
Get the Helm values files for your current version.
- Get your current values for the management cluster.
helm get values gloo-platform -n gloo-mesh -o yaml --kube-context $MGMT_CONTEXT > mgmt-plane.yaml open mgmt-plane.yaml - Get your current values for the workload clusters.
helm get values gloo-platform -n gloo-mesh -o yaml --kube-context $REMOTE_CONTEXT > data-plane.yaml open data-plane.yaml
- Get your current values for the management cluster.
In the Helm chart for the management cluster, add the following configuration to your Helm values file to enable logs for Gloo components.
telemetryCollectorCustomization: pipelines: logs/ui: enabled: trueIn the Helm values file for the workload cluster, add the following configuration to your Helm values file to enable logs for Gloo components. Logs are automatically sent to the telemetry gateway in the management cluster.
telemetryCollectorCustomization: pipelines: logs/ui: enabled: trueUpgrade the Gloo management cluster.
helm upgrade gloo-platform gloo-platform/gloo-platform \ --kube-context $MGMT_CONTEXT \ --namespace gloo-mesh \ -f mgmt-plane.yaml \ --version $GLOO_VERSIONVerify that your settings are applied in the management cluster.
Verify that your settings were added to the Gloo telemetry gateway configmap.
kubectl get configmap gloo-telemetry-gateway-config -n gloo-mesh -o yaml --context $MGMT_CONTEXTPerform a rollout restart of the telemetry gateway deployment to force your configmap changes to be applied to the telemetry gateway pod.
kubectl rollout restart -n gloo-mesh deployment/gloo-telemetry-gateway --context $MGMT_CONTEXT
Upgrade the Gloo workload cluster.
helm upgrade gloo-platform gloo-platform/gloo-platform \ --kube-context $REMOTE_CONTEXT \ --namespace gloo-mesh \ -f data-plane.yaml \ --version $GLOO_VERSIONVerify that your settings are applied in the workload cluster.
Verify that your settings were added to the Gloo telemetry collector configmap.
kubectl get configmap gloo-telemetry-collector-config -n gloo-mesh -o yaml --context $REMOTE_CONTEXTPerform a rollout restart of the telemetry collector daemon set to force your configmap changes to be applied to the telemetry collector agent pods.
kubectl rollout restart -n gloo-mesh daemonset/gloo-telemetry-collector-agent --context $REMOTE_CONTEXT
Open the Gloo UI.
meshctl dashboard --kubecontext $MGMT_CONTEXTIn the navigation pane, click Logs. Select the cluster, component, pod, and container for which you want to see the logs.