How to make Host's CPU Utilization Metric? #23108
-
I believe this should have been answered here and there but searching and using AI tools searching result no such thread for me to rely on. Right now with host_metrics https://vector.dev/docs/reference/configuration/sources/host_metrics/ I'm not sure how to make such metric? Is it the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Not certain what exactly our asking here. With that source I'm sending the data to Prometheus and visualizing in grafana with a query like below. Hope this helps.
|
Beta Was this translation helpful? Give feedback.
-
Your example does help me figuring out the right metric to use. Though the metric name is not consistent here and there, I'm not sure why. Your example is For my "CPU Utilization" metric that I try to have is more about this (Datadog queries)
The resulting time series points are usage percentage % of CPU. Thank you. |
Beta Was this translation helpful? Give feedback.
Your example does help me figuring out the right metric to use. Though the metric name is not consistent here and there, I'm not sure why. Your example is
node_cpu_seconds_total
. In the doc, it'shost_cpu_seconds_total
(ref). For my test with the Amazon EC2 instance, it's justvector.cpu_seconds_total
(I defined custom namespace via remap transform) withouthost_
ornode_
prefix after the namespace.For my "CPU Utilization" metric that I try to have is more about this (Datadog queries)
The resulting time series points ar…