Skip to content

Getting Energy Consumption Per Process #122

Answered by Saicasm
Saicasm asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @TheElectronWill,

Thank you for clarifying and directing me towards the right steps. I was able to achieve pod-level metrics with energy attribution to each pod. Here are the steps for anyone who might want to try it out:

Steps to Set Up Pod-Level Energy Attribution

1. Update and Build the Alumet Agent

Modify Cargo.toml

  1. Navigate to the agent folder
  2. Add the energy attribution plugin under Linux-only dependencies:
plugin-energy-attribution = { path = "../plugin-energy-attribution" }

Modify main.rs

Add the plugin to the Linux-only plugins list:

#[cfg(target_os = "linux")]
{
    plugins.extend(static_plugins![
        plugin_socket_control::SocketControlPlugin,
        plugin_cgroupv2::

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TheElectronWill
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Saicasm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants