Managing captures
A capture is a trace file that you can generate to analyze what happens in a host during a time frame. For example, you can use it to analyze bottlenecks, or component interactions. In the IBM Cloud Monitoring service, you can create, explore, download, and delete captures for individual nodes.
The capture file size limit is 100 MB.
Captures contain system calls, and other OS events such as system-level latencies, batch jobs duration, deployments interruption times, autoscaling latencies, container startup times, or application transaction time. Captures include detailed information from every container on a node.
You can create, explore, download, and delete captures for individual nodes. A node can be a host, a container, a virtual machine, a bare metal, or any metrics source where you install a monitoring agent.
- In the web UI, you create captures in the Explore section and manage capture files through the Captures section.
- You can visualize data from a capture by using Csysdig (the curses-based command-line UI).
- You can search data in a capture by using filters.
- You can manipulate data in a capture by using chisels (scripts).
When you enable the capture feature for a team, capture files are only visible to members of that team.
The following list outlines the main tasks when you work with captures:
Creating a capture
You create a capture in the Explore view.
Complete the following steps to create a capture file:
-
Navigate to the Explore section in the web UI. Learn more.
-
Click the switch host icon .
-
Select a host or a container.
-
Click the actions icon and select Sysdig capture.
The capture window opens.
-
In the capture window, define the following parameters:
-
In the field Capture path and name, enter the name of the capture file. You can leave the default value or modify it. The default name includes the date and the timestamp when the capture is created.
-
Set a Time frame to specify the number of seconds to gather data. The default capture time is 15 seconds. The maximum capture time is 86400 seconds (24 hours).
-
(Optional) Add a filter to restrict the amount of trace information that is collected.
-
-
Click START CAPTURE. The monitoring agent is signaled to start a capture, and send back the resulting trace file.
-
Click Go to captures page to display the list of captures in the Captures section of the web UI.
The Captures page shows a table that lists the capture file name, the host it was retrieved from, the time frame, and the size of the capture.
The status of a capture file can be any of the following values:
Requested
: A file is being generated.Uploaded
: A file is available for download, and analysis.Error
: A file is not available due to a timeout, data that was never received, or an agent error.
Deleting a capture
Complete the following steps to delete a capture file:
- Navigate to the Captures section in the web UI. Learn more.
- Identify and select the capture file that you want to delete.
- Click Delete.
Exploring a capture
Complete the following steps to explore a capture file:
- Navigate to the Captures section in the web UI. Learn more.
- Identify and select the capture file that contains the data for the host that you want to analyze.
- Click EXPLORE.
Downloading a capture
Complete the following steps to download a capture file:
- Navigate to the Captures section in the web UI. Learn more.
- Identify and select the capture file that contains the data that you want to download.
- Click DOWNLOAD.
Chisels
A chisel is a script that is written in Lua, a scripting language. You can use it to analyze data in a capture file.
For more information, see Chisels User Guide.
Csysdig
Csysdig is an open source tool for Linux that is designed for monitoring and debugging. You can use it to analyze capture files.
For more information, see the following resources: