From 4f54fe5b9ca20337b67564bc9b882c5f1f8768b4 Mon Sep 17 00:00:00 2001 From: Guillermo Gomez Chavez Date: Fri, 19 Jun 2026 12:26:18 +0200 Subject: [PATCH 1/2] feat(nvml): support for nvml attribution --- charts/alumet/Chart.yaml | 6 +++--- .../charts/alumet-relay-client/Chart.yaml | 4 ++-- .../alumet-relay-client/alumet-agent.toml | 20 +++++++++++++++++++ 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/charts/alumet/Chart.yaml b/charts/alumet/Chart.yaml index ba58909..e04abca 100644 --- a/charts/alumet/Chart.yaml +++ b/charts/alumet/Chart.yaml @@ -16,13 +16,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.1 +version: 0.8.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: '0.9.4' +appVersion: '0.9.5' dependencies: - name: influxdb2 @@ -33,5 +33,5 @@ dependencies: version: 0.6.2 condition: alumet-relay-server.enabled - name: alumet-relay-client - version: 0.7.1 + version: 0.8.0 condition: alumet-relay-client.enabled diff --git a/charts/alumet/charts/alumet-relay-client/Chart.yaml b/charts/alumet/charts/alumet-relay-client/Chart.yaml index 73b8c14..a8c2c7e 100644 --- a/charts/alumet/charts/alumet-relay-client/Chart.yaml +++ b/charts/alumet/charts/alumet-relay-client/Chart.yaml @@ -16,10 +16,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.1 +version: 0.8.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: '0.9.4' +appVersion: '0.9.5' diff --git a/charts/alumet/charts/alumet-relay-client/alumet-agent.toml b/charts/alumet/charts/alumet-relay-client/alumet-agent.toml index 25bc7d8..1566c8d 100644 --- a/charts/alumet/charts/alumet-relay-client/alumet-agent.toml +++ b/charts/alumet/charts/alumet-relay-client/alumet-agent.toml @@ -155,6 +155,26 @@ cpu_energy = { metric = "estimated_consumed_energy", resource_kind = "local_mach # - the attribute `kind` equal to `total` cpu_usage = { metric = "cpu_percent", kind = "total" } {{- end }} +{{ if and .Values.plugins.energyAttribution.enable .Values.plugins.nvml.enable }} +[plugins.energy-attribution.formulas.attributed_nvml_energy] +expr = "(gpu_energy/1000) * (gpu_usage/100.0)" # gpu_energy are mJ +ref = "gpu_energy" +retention_time = "6s" + +[plugins.energy-attribution.formulas.attributed_nvml_energy.per_resource] +gpu_energy = { metric = "nvml_energy_consumption", resource_kind = "gpu" } + +[plugins.energy-attribution.formulas.attributed_nvml_energy.per_consumer] +gpu_usage = { metric = "nvml_sm_utilization" } + +[plugins.process-to-cgroup-bridge] +# The metrics names we want to find the cgroup for +processes_metrics = ["attributed_nvml_energy"] +# Will aggregate measurements in case multiple processes share the same cgroup and have the same timestamp. This leads to one measurement per metric per cgroup per timestamp. +merge_similar_cgroups = true +# Will keep all the measurements that have been processed by the transformer. In case it's false only the measurements with a cgroup resource consumer will be kept. +keep_processed_measurements = false +{{- end }} [plugins.relay-client] enable = {{ .Values.plugins.relay_client.enable }} From 53c89cf2c076ffb9df2cf230619abe0f66bef86b Mon Sep 17 00:00:00 2001 From: Guillermo Gomez Chavez Date: Fri, 19 Jun 2026 17:05:18 +0200 Subject: [PATCH 2/2] feat(agent): upgraded for agent v0.9.5 --- charts/alumet/Chart.yaml | 2 +- charts/alumet/charts/alumet-relay-client/alumet-agent.toml | 1 - charts/alumet/charts/alumet-relay-client/values.yaml | 1 - charts/alumet/charts/alumet-relay-server/Chart.yaml | 4 ++-- charts/alumet/charts/alumet-relay-server/alumet-agent.toml | 1 - charts/alumet/charts/alumet-relay-server/values.yaml | 1 - 6 files changed, 3 insertions(+), 7 deletions(-) diff --git a/charts/alumet/Chart.yaml b/charts/alumet/Chart.yaml index e04abca..4ac13a0 100644 --- a/charts/alumet/Chart.yaml +++ b/charts/alumet/Chart.yaml @@ -30,7 +30,7 @@ dependencies: condition: influxdb2.enabled repository: 'https://helm.influxdata.com' - name: alumet-relay-server - version: 0.6.2 + version: 0.7.0 condition: alumet-relay-server.enabled - name: alumet-relay-client version: 0.8.0 diff --git a/charts/alumet/charts/alumet-relay-client/alumet-agent.toml b/charts/alumet/charts/alumet-relay-client/alumet-agent.toml index 1566c8d..76f9cc0 100644 --- a/charts/alumet/charts/alumet-relay-client/alumet-agent.toml +++ b/charts/alumet/charts/alumet-relay-client/alumet-agent.toml @@ -194,7 +194,6 @@ socket_path = "alumet-control.sock" [plugins.opentelemetry] enable = {{ .Values.plugins.opentelemetry.enable }} -push_interval_seconds = {{ .Values.plugins.opentelemetry.push_interval_seconds }} collector_host = "{{ .Values.plugins.opentelemetry.collector_host }}" prefix = "" suffix = "_alumet" diff --git a/charts/alumet/charts/alumet-relay-client/values.yaml b/charts/alumet/charts/alumet-relay-client/values.yaml index 9380e63..6ee03cb 100644 --- a/charts/alumet/charts/alumet-relay-client/values.yaml +++ b/charts/alumet/charts/alumet-relay-client/values.yaml @@ -82,7 +82,6 @@ plugins: opentelemetry: enable: false collector_host: 'http://localhost:4317' - push_interval_seconds: 5 prometheusExporter: enable: false port: 9091 diff --git a/charts/alumet/charts/alumet-relay-server/Chart.yaml b/charts/alumet/charts/alumet-relay-server/Chart.yaml index f10dde8..9d21b42 100644 --- a/charts/alumet/charts/alumet-relay-server/Chart.yaml +++ b/charts/alumet/charts/alumet-relay-server/Chart.yaml @@ -16,10 +16,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.6.2 +version: 0.7.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: '0.9.4' +appVersion: '0.9.5' diff --git a/charts/alumet/charts/alumet-relay-server/alumet-agent.toml b/charts/alumet/charts/alumet-relay-server/alumet-agent.toml index a998dc8..978ce17 100644 --- a/charts/alumet/charts/alumet-relay-server/alumet-agent.toml +++ b/charts/alumet/charts/alumet-relay-server/alumet-agent.toml @@ -31,7 +31,6 @@ password = "{{ .Values.plugins.mongodb.password }}" [plugins.opentelemetry] enable = {{ .Values.plugins.opentelemetry.enable }} collector_host = "{{ .Values.plugins.opentelemetry.collector_host }}" -push_interval_seconds = {{ .Values.plugins.opentelemetry.push_interval_seconds }} prefix = "" suffix = "_alumet" use_unit_display_name = true diff --git a/charts/alumet/charts/alumet-relay-server/values.yaml b/charts/alumet/charts/alumet-relay-server/values.yaml index c206a12..b890548 100644 --- a/charts/alumet/charts/alumet-relay-server/values.yaml +++ b/charts/alumet/charts/alumet-relay-server/values.yaml @@ -75,7 +75,6 @@ plugins: opentelemetry: enable: false collector_host: 'http://localhost:4317' - push_interval_seconds: 5 prometheusExporter: enable: false