Using must-gather
The must-gather
tool for Forklift collects logs, metrics, and information about Forklift custom resources.
-
You must be logged in to the KubeVirt cluster as a user with the
cluster-admin
role. -
You must have the OKD CLI (
oc
) installed.
-
Navigate to the directory where you want to store the
must-gather
data. -
Run the
oc adm must-gather
command with the--image
argument:$ oc adm must-gather --image=quay.io/konveyor/forklift-must-gather:latest
The data is saved in a local
must-gather
directory. -
To view Prometheus metrics data:
-
Run the
oc adm must-gather
command with thegather_metrics_dump
script:$ oc adm must-gather --image quay.io/konveyor/forklift-must-gather:latest -- /usr/bin/gather_metrics_dump
NoteThis process might take a long time. The tool processes the most recent
prom_data.tar.gz
file in the/must-gather/metrics
directory. -
Create a local Prometheus instance to display the data:
$ make prometheus-run
-
After you have viewed the data, delete the Prometheus instance and data:
$ make prometheus-cleanup
-