EXPAND ALL
  • Home
Open Source Docs

PXL Functions

Scalar Functions

FunctionArgumentsDescription
add
INT64, INT64 -> INT64
FLOAT64, INT64 -> FLOAT64
INT64, FLOAT64 -> FLOAT64
FLOAT64, FLOAT64 -> FLOAT64
TIME64NS, INT64 -> TIME64NS
INT64, TIME64NS -> TIME64NS
STRING, STRING -> STRING
Arithmetically add the arguments or concatenate the strings.
subtract
INT64, INT64 -> INT64
FLOAT64, INT64 -> FLOAT64
INT64, FLOAT64 -> FLOAT64
TIME64NS, INT64 -> INT64
TIME64NS, TIME64NS -> INT64
INT64, TIME64NS -> INT64
FLOAT64, FLOAT64 -> FLOAT64
Arithmetically subtract the first argument by the second argument.
divide
INT64, INT64 -> FLOAT64
FLOAT64, INT64 -> FLOAT64
INT64, FLOAT64 -> FLOAT64
FLOAT64, FLOAT64 -> FLOAT64
Arithmetically divide the two arguments.
multiply
INT64, INT64 -> INT64
FLOAT64, INT64 -> FLOAT64
INT64, FLOAT64 -> FLOAT64
FLOAT64, FLOAT64 -> FLOAT64
Multiplies the arguments.
modulo
TIME64NS, INT64 -> INT64
TIME64NS, TIME64NS -> INT64
INT64, TIME64NS -> INT64
INT64, INT64 -> INT64
Calculates the remainder of the division of the two numbers
ceil
FLOAT64 -> INT64
Compute the ceiling of the value.
floor
FLOAT64 -> INT64
Compute the floor of the value.
logicalOr
INT64, INT64 -> BOOLEAN
BOOLEAN, BOOLEAN -> BOOLEAN
Boolean ORs the passed in values.
logicalAnd
INT64, INT64 -> BOOLEAN
BOOLEAN, BOOLEAN -> BOOLEAN
Boolean ANDs the passed in values.
logicalNot
INT64 -> BOOLEAN
BOOLEAN -> BOOLEAN
Boolean NOTs the passed in value.
negate
INT64 -> INT64
FLOAT64 -> FLOAT64
Negates the passed in value.
invert
INT64 -> INT64
Invert the bits of the given value.
equal
INT64, INT64 -> BOOLEAN
STRING, STRING -> BOOLEAN
BOOLEAN, BOOLEAN -> BOOLEAN
BOOLEAN, INT64 -> BOOLEAN
INT64, BOOLEAN -> BOOLEAN
INT64, FLOAT64 -> BOOLEAN
FLOAT64, INT64 -> BOOLEAN
UINT128, UINT128 -> BOOLEAN
TIME64NS, TIME64NS -> BOOLEAN
FLOAT64, FLOAT64 -> BOOLEAN
Returns whether the values are equal.
notEqual
INT64, INT64 -> BOOLEAN
STRING, STRING -> BOOLEAN
BOOLEAN, BOOLEAN -> BOOLEAN
BOOLEAN, INT64 -> BOOLEAN
INT64, BOOLEAN -> BOOLEAN
INT64, FLOAT64 -> BOOLEAN
FLOAT64, INT64 -> BOOLEAN
TIME64NS, TIME64NS -> BOOLEAN
Returns whether the values are not equal.
approxEqual
FLOAT64, FLOAT64 -> BOOLEAN
Return whether the two values are approximately equal.
greaterThan
INT64, INT64 -> BOOLEAN
FLOAT64, FLOAT64 -> BOOLEAN
STRING, STRING -> BOOLEAN
Compare whether the first argument is greater than the second argument.
greaterThanEqual
INT64, INT64 -> BOOLEAN
FLOAT64, FLOAT64 -> BOOLEAN
STRING, STRING -> BOOLEAN
TIME64NS, TIME64NS -> BOOLEAN
Compare whether the first argument is greater than or equal to the second argument.
lessThan
INT64, INT64 -> BOOLEAN
FLOAT64, FLOAT64 -> BOOLEAN
STRING, STRING -> BOOLEAN
Returns which value is less than the other.
lessThanEqual
INT64, INT64 -> BOOLEAN
FLOAT64, FLOAT64 -> BOOLEAN
TIME64NS, TIME64NS -> BOOLEAN
STRING, STRING -> BOOLEAN
Returns which value is less than or equal to the the other.
bin
INT64, INT64 -> INT64
INT64, TIME64NS -> INT64
TIME64NS, INT64 -> TIME64NS
TIME64NS, TIME64NS -> TIME64NS
FLOAT64, INT64 -> INT64
Rounds value to the nearest multiple.
round
FLOAT64, INT64 -> STRING
Rounds the float to the nearest decimal places.
pluck
STRING, STRING -> STRING
Grabs the value for the key value the serialized JSON string and returns as a string.
pluck_int64
STRING, STRING -> INT64
Grabs the value for the key from the serialized JSON string and returns as an int.
pluck_float64
STRING, STRING -> FLOAT64
Grabs the value for the key from the serialized JSON string and returns as a float.
contains
STRING, STRING -> BOOLEAN
Returns whether the first string contains the second string.
length
STRING -> INT64
Returns the length of the string
find
STRING, STRING -> INT64
Find the index of the first occurrence of the substring.
substring
STRING, INT64, INT64 -> STRING
Returns the specified substring from the string
tolower
STRING -> STRING
Transforms all uppercase ascii characters in the string to lowercase.
toupper
STRING -> STRING
Transforms all lowercase ascii characters in the string to uppercase.
trim
STRING -> STRING
Trim ascii whitespace from before and after the string content.
strip_prefix
STRING, STRING -> STRING
Strips the specified prefix from the string.
hex_to_ascii
STRING -> STRING
Convert an input hex sequence in ASCII to bytes.
bytes_to_hex
STRING -> STRING
Convert an input bytes in hex string.
asid
-> INT64
Get the agent ID.
container_id_to_status
STRING -> STRING
Get the status of the container given the container ID.
container_id_to_start_time
STRING -> TIME64NS
Get the start time of a container from its ID.
container_id_to_stop_time
STRING -> TIME64NS
Get the stop time of a container from its ID.
container_name_to_container_id
STRING -> STRING
Get the id of a container from its name.
container_name_to_start_time
STRING -> TIME64NS
Get the start time of a container from its name.
container_name_to_stop_time
STRING -> TIME64NS
Get the stop time of a container from its name.
ip_to_pod_id
STRING -> STRING
Convert IP address to the kubernetes pod ID that runs the backing service.
pod_id_to_pod_name
STRING -> STRING
Get the name of a pod from its pod ID.
pod_id_to_namespace
STRING -> STRING
Get the Kubernetes namespace from a pod ID.
pod_id_to_node_name
STRING -> STRING
Get the name of the node a pod ID is running on.
pod_id_to_start_time
STRING -> TIME64NS
Get the start time of a pod from its ID.
pod_id_to_stop_time
STRING -> TIME64NS
Get the stop time of a pod from its ID.
pod_id_to_service_name
STRING -> STRING
Get the service name for a given pod ID.
pod_id_to_service_id
STRING -> STRING
Get the service ID for a given pod ID.
ip_to_service_id
STRING -> STRING
Get the service ID for a given pod IP.
pod_name_to_namespace
STRING -> STRING
Get the Kubernetes namespace from a pod name.
pod_name_to_pod_id
STRING -> STRING
Get the id of a pod from its name.
pod_name_to_pod_ip
STRING -> STRING
Get the IP address of a pod from its name.
pod_name_to_service_name
STRING -> STRING
Get the service name for a given pod name.
pod_name_to_service_id
STRING -> STRING
Get the service ID for a given pod name.
pod_name_to_start_time
STRING -> TIME64NS
Get the start time of a pod from its name.
pod_name_to_stop_time
STRING -> TIME64NS
Get the stop time of a pod from its name.
pod_name_to_status
STRING -> STRING
Get status information about the given pod.
service_id_to_service_name
STRING -> STRING
Convert the kubernetes service ID to service name.
service_name_to_service_id
STRING -> STRING
Convert the service name to the service ID.
service_name_to_namespace
STRING -> STRING
Gets the namespace from the service name.
upid_to_asid
UINT128 -> INT64
Get the Pixie Agent ID from the UPID.
upid_to_container_id
UINT128 -> STRING
Get the Kubernetes container ID from a UPID.
upid_to_cmdline
UINT128 -> STRING
Get the command line arguments used to start a UPID.
upid_to_container_name
UINT128 -> STRING
Get the Kubernetes container name from a UPID.
upid_to_hostname
UINT128 -> STRING
Get the Hostname from a UPID.
upid_to_namespace
UINT128 -> STRING
Get the Kubernetes namespace from a UPID.
upid_to_node_name
UINT128 -> STRING
Get the Node Name from a UPID.
upid_to_pid
UINT128 -> INT64
Get the PID of the process for the given UPID.
upid_to_pod_id
UINT128 -> STRING
Get the Kubernetes Pod ID from a UPID.
upid_to_pod_name
UINT128 -> STRING
Get the Kubernetes Pod Name from a UPID.
upid_to_pod_qos
UINT128 -> STRING
Get the Kubernetes QOS class for the UPID.
upid_to_pod_status
UINT128 -> STRING
Get status information about the pod of a UPID.
upid_to_service_name
UINT128 -> STRING
Get the Service Name from a UPID.
upid_to_service_id
UINT128 -> STRING
Get the Service ID from a UPID.
upid_to_string
UINT128 -> STRING
Get a stringified version of the UPID.
_exec_hostname
-> STRING
Get the hostname of the machine.
nslookup
STRING -> STRING
Perform a DNS lookup for the value (experimental).

Aggregate Functions

FunctionArgumentsDescription
mean
FLOAT64 -> FLOAT64
INT64 -> FLOAT64
BOOLEAN -> FLOAT64
Calculate the arithmetic mean.
sum
FLOAT64 -> FLOAT64
INT64 -> INT64
BOOLEAN -> INT64
Calculate the arithmetic sum of the grouped values.
max
FLOAT64 -> FLOAT64
INT64 -> INT64
TIME64NS -> TIME64NS
Returns the maximum in the group.
min
FLOAT64 -> FLOAT64
INT64 -> INT64
TIME64NS -> TIME64NS
Returns the minimum in the group.
count
FLOAT64 -> INT64
INT64 -> INT64
TIME64NS -> INT64
BOOLEAN -> INT64
STRING -> INT64
UINT128 -> INT64
Returns number of rows in the aggregate group.
quantiles
INT64 -> STRING
FLOAT64 -> STRING
Approximates the distribution of the aggregated data.
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.