Skip to content

Commit ae07b48

Browse files
committed
Update kepler version and container template
Update kepler image default version to v0.10.2. The new kepler (starting from 0.10) has completely different set of config options so kepler's template was updated correspondingly. - Removed '-v' option as it's no longer supported. - Added option --web.listen-address=:8888 as kepler no longer runs on port 8888 by default. - There is no longer need to specify desired metrics using environment variables as all metrics are enabled by default. Also changed kepler healthcheck script: - 'healthz' URL path no longer exist, so use 'metrics' instead. - Fetch only headers and status code for healthcheck in order to minimize load.
1 parent ffaae42 commit ae07b48

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

roles/edpm_telemetry_power_monitoring/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ edpm_telemetry_image_download_retries: "{{ edpm_download_retries | default(5) }}
3838
edpm_telemetry_old_tripleo_compute_sevices:
3939
- tripleo_ceilometer_agent_ipmi.service
4040
# Image to use for kepler
41-
edpm_telemetry_kepler_image: "quay.io/sustainable_computing_io/kepler:release-0.7.12"
41+
edpm_telemetry_kepler_image: "quay.io/sustainable_computing_io/kepler:v0.10.2"
4242
# Instruction for distribution of container health check scripts
4343
edpm_telemetry_power_monitoring_healthcheck_sources:
4444
ceilometer_agent_ipmi: ceilometer_agent

roles/edpm_telemetry_power_monitoring/files/healthchecks/exporter/healthcheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# License for the specific language governing permissions and limitations
1616
# under the License.
1717

18-
URL="http://0.0.0.0:8888/healthz"
18+
URL="http://0.0.0.0:8888/metrics"
1919
TIMEOUT=5 # Timeout in seconds
2020

2121
# Get the HTTP status code and response body using curl
22-
RESPONSE=$(curl -s -w "%{http_code}" $URL --max-time $TIMEOUT)
22+
RESPONSE=$(curl -I -s -w "%{http_code}" $URL --max-time $TIMEOUT)
2323
BODY=${RESPONSE:0:-3} # Extract the body (all but the last 3 characters)
2424
HTTP_CODE=${RESPONSE: -3} # Extract the last 3 characters as the HTTP status code
2525

roles/edpm_telemetry_power_monitoring/templates/kepler.json.j2

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,8 @@
44
"restart": "always",
55
"ports": ["8888:8888"],
66
"net": "host",
7-
"command": "-v=2",
7+
"command": "--web.listen-address=:8888",
88
"recreate": true,
9-
"environment": {
10-
"ENABLE_GPU": "true",
11-
"EXPOSE_CONTAINER_METRICS": "true",
12-
"ENABLE_PROCESS_METRICS": "true",
13-
"EXPOSE_VM_METRICS": "true",
14-
"EXPOSE_ESTIMATED_IDLE_POWER_METRICS": "false",
15-
"LIBVIRT_METADATA_URI": "http://openstack.org/xmlns/libvirt/nova/1.1"
16-
},
179
{% if edpm_telemetry_power_monitoring_healthcheck %}
1810
"healthcheck": {
1911
"test": "/openstack/healthcheck kepler",

0 commit comments

Comments
 (0)