EXPAND ALL
  • Home

pxtrace.LabelSelector

Creates a Tracepoint target for a process.

Defines a tracepoint target for a process based a set of k8s labels representing a set of pods matching all of this labels. Optionally, a container and process can be provided.

Arguments

NameTypeDescription
labelsdict<str, str>The K8s labels that can be resolved to a set of pods. Must be of a dictionary of key value pairs.
namespacestrThe namespace that target pods are in.
container_namestr, optionalThe name of the container that's running the process. Specify this argument if a pod has more than one containers. The compiler will error out if a pod has multiple containers and this is not specified.
process_namestr, optionalA regexp that matches any substrings of the command line of the target process. Specify this if a container has more than one process. The compiler will error out if a container has multiple processes and this is not specified.

Returns

ProcessTarget: A pointer to that Process that can be passed as a target to UpsertTracepoint.

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.