This section contains details for what type of data is retrieved by each of the sql queries included in scripts/sql
.
Calculates the number of ai_units
used by each [resource] hourly.
Given that:
ram_gi
: RAM in Gigabytescpu
: CPU units (converted from millicpus to CPU units in the precursor step)gpu
: Count of GPUs
Number of ai units
is calculated as follows
Calculates the resource utilization
used by each engine
hourly
Given that:
stream
: One of valuestarting
/pausing
/deleting
user_name
: Keycloak preferred usernameenginename
: Name of the enginetype
: Type of the engineversion
: Versioncpu
: CPU units (converted from millicpus to CPU units in the precursor step)gpu
: Count of GPUsmemory
: Memory usage in GBstorage
: Storage usage in GB
Number of ai units
is calculated as follows
Returns telemetry data for app events
Given that:
stream
: stream of the app eventusername
: Keycloak preferred usernamelabel
: payload datats
: timestamp
Calculates hourly hardware resource utilization by resources
Given that:
-
hour
: calculated hour -
resource
: resource name -
ram_gi
: RAM in Gigabytes -
ram_gi_ai_unit_hours
:$$ram_gi_ai_unit_hours=\frac{ram_gi}{64}$$ -
cpu
: CPU units (converted from millicpus to CPU units in the precursor step) -
cpu_ai_unit_hours
:$$cpu_ai_unit_hours=\frac{cpu}{8}$$ -
gpu
: Count of GPUs -
gpu_ai_unit_hours
:$$cpu_ai_unit_hours={gpu}\times{8}$$ -
ai_units
$$ai_units = \max\left(\max\left(\frac{ram_gi}{64}, \frac{cpu}{8}\right) - gpu, 0\right) + (gpu \times 4)$$
Calculates the maximum ai_units with other resource utilization hourly
-
time_interval
: calculated hour -
resource
: resource name -
ram_gi
: RAM in Gigabytes -
ram_gi_ai_unit_hours
:$$ram_gi_ai_unit_hours=\frac{ram_gi}{64}$$ -
cpu
: CPU units (converted from millicpus to CPU units in the precursor step) -
cpu_ai_unit_hours
:$$cpu_ai_unit_hours=\frac{cpu}{8}$$ -
gpu
: Count of GPUs -
gpu_ai_unit_hours
:$$cpu_ai_unit_hours={gpu}\times{8}$$ -
ai_units
$$ai_units = \max\left(\max\left(\frac{ram_gi}{64}, \frac{cpu}{8}\right) - gpu, 0\right) + (gpu \times 4)$$
Calculates the maximum ai_units utilized hourly
Given that:
-
time_interval
: Calculated hour -
ai_units
:$$ai_units = \max\left(\left(\max\left(\left(\frac{ram_gi} {ram_gi_per_ai_unit_hours}\right), \left(\frac{cpu}{cpu_per_ai_unit_hours}\right)\right) - gpu\right), 0\right) + \left(gpu \times gpu_per_ai_unit_hours\right)$$
Returns summary of events of the instances
Given that:
stream
: stream of the app eventusername
: Keycloak preferred usernamelabel
: payload datats
: timestamp
Retrieves data related to user login events from the app store.
username
: Keycloak preferred usernamets
: timestamp