The CPU steal time is already available as a metric from node_exporter, 
as node_cpu_seconds_total{instance="XXX",cpu="N",mode="steal"}

Since this is an accumulated number of seconds, you'd use rate() to find 
out how fast it is growing.

If you want to view this in Grafana there are existing dashboards you can 
use, e.g. https://grafana.com/grafana/dashboards/1860-node-exporter-full/

On Wednesday, 23 August 2023 at 11:55:02 UTC+1 Monica wrote:

> Hi All,
>
> I need to capture the 'st' parameter (which represents the time stolen 
> from this virtual machine by the hypervisor) from the Linux 'top' command 
> using Prometheus for monitoring purposes.
>
> %Cpu(s):  1.5 us,  1.2 sy,  0.0 ni, 97.3 id,  0.0 wa,  0.0 hi,  0.0 si,* 
> 0.0 st*
>
> Could anyone please suggest whether this is achievable using Prometheus? 
> If so, could you also explain how?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ad32c910-8ed4-49b1-aa7d-a8f8c538c78bn%40googlegroups.com.

Reply via email to