https://signoz.io logo
#support
Title
# support
m

Mike Collins

02/06/2024, 1:29 PM
I have this from grafana... 100 * (delta(process_cpu_time_seconds_total{state='user'}[$__rate_interval])/ignoring(state)(process_cpu_count* 30)) how to make this work in the signoz promql query?
s

Srikanth Chekuri

02/06/2024, 1:32 PM
There is no variable support for
$__rate_interval
yet.
m

Mike Collins

02/06/2024, 1:33 PM
so cant be done?
s

Srikanth Chekuri

02/08/2024, 4:09 PM
You could work around it by defining the varaible but that's not really a robust way to do it.
m

Mike Collins

02/09/2024, 1:13 PM
how to define it as a variable for 5 minutes?
s

Srikanth Chekuri

02/09/2024, 4:51 PM
You can create a custom type variable with the list of values you want to use. The second type here shows how to do it https://signoz.io/docs/userguide/manage-variables/#supported-variables-types.