sustainable-computing-io / kepler

Kepler (Kubernetes-based Efficient Power Level Exporter) uses eBPF to probe performance counters and other system stats, use ML models to estimate workload energy consumption based on these stats, and exports them as Prometheus metrics
https://sustainable-computing.io
Apache License 2.0
1.19k stars 184 forks source link

kepler version printed incorrectly #1848

Open vimalk78 opened 1 week ago

vimalk78 commented 1 week ago

What happened?

kepler-latest-1  | I1115 18:05:38.716088  695079 exporter.go:103] Kepler running on version:
exporter.go:103] Kepler running on version: v0.7.12-dirty

What did you expect to happen?

version 0.7.12 to be printed

How can we reproduce it (as minimally and precisely as possible)?

run kepler from quay.io image

Anything else we need to know?

No response

Kepler image tag

0.7.12

Kubernetes version

```console $ kubectl version # paste output here ```

Cloud provider or bare metal

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

Kepler deployment config

For on kubernetes: ```console $ KEPLER_NAMESPACE=kepler # provide kepler configmap $ kubectl get configmap kepler-cfm -n ${KEPLER_NAMESPACE} # paste output here # provide kepler deployment description $ kubectl describe deployment kepler-exporter -n ${KEPLER_NAMESPACE} ``` For standalone: # put your Kepler command argument here

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

SamYuan1990 commented 1 hour ago

btw, the logic for rpm build at https://github.com/sustainable-computing-io/kepler/blob/main/.github/workflows/rpm.yml#L19 seems not same shell logic or script, with make file. as | tr '-' '.' is not in make file.