From f87bbaac8edecc6edd768b9ee318a2af9de7fac6 Mon Sep 17 00:00:00 2001 From: Sunil Thaha Date: Thu, 29 Aug 2024 10:05:30 +1000 Subject: [PATCH] chore(compose/dev): allow power meters to be disabled This pr allows dev compose to turn off power-meters (on BM) and expose idle metrics. Signed-off-by: Sunil Thaha --- manifests/compose/compose.yaml | 4 ++++ .../kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS | 1 + manifests/compose/dev/compose.yaml | 5 +++++ .../kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS | 1 + 4 files changed, 11 insertions(+) create mode 100644 manifests/compose/default/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS create mode 100644 manifests/compose/dev/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS diff --git a/manifests/compose/compose.yaml b/manifests/compose/compose.yaml index 9c58af2a6a..65643b75f6 100644 --- a/manifests/compose/compose.yaml +++ b/manifests/compose/compose.yaml @@ -41,8 +41,12 @@ services: set -x; /usr/bin/kepler \ -address "0.0.0.0:8888" \ + -disable-power-meter=$$DISABLE_POWER_METER \ -v "8" \ -enable-gpu=false + environment: + - DISABLE_POWER_METER=${DISABLE_POWER_METER:-false} + networks: kepler-network: diff --git a/manifests/compose/default/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS b/manifests/compose/default/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS new file mode 100644 index 0000000000..27ba77ddaf --- /dev/null +++ b/manifests/compose/default/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS @@ -0,0 +1 @@ +true diff --git a/manifests/compose/dev/compose.yaml b/manifests/compose/dev/compose.yaml index 03ff1d9f15..d7dae95be7 100644 --- a/manifests/compose/dev/compose.yaml +++ b/manifests/compose/dev/compose.yaml @@ -51,8 +51,13 @@ services: set -x; /usr/bin/kepler \ -address "0.0.0.0:8888" \ + -disable-power-meter=$$DISABLE_POWER_METER \ -v "8" \ -enable-gpu=false + + environment: + - DISABLE_POWER_METER=${DISABLE_POWER_METER:-false} + networks: - kepler-network cap_add: diff --git a/manifests/compose/dev/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS b/manifests/compose/dev/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS new file mode 100644 index 0000000000..27ba77ddaf --- /dev/null +++ b/manifests/compose/dev/kepler/etc/kepler/kepler.config/EXPOSE_ESTIMATED_IDLE_POWER_METRICS @@ -0,0 +1 @@ +true