Skip to content

Commit

Permalink
Merge pull request #829 from yadneshk/drop_idle_power_metrics
Browse files Browse the repository at this point in the history
Explicitly enable metrics needed for Kepler dashboard
  • Loading branch information
openshift-merge-bot[bot] authored Jan 7, 2025
2 parents ef3c633 + 9497df2 commit a8a50e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
# under the License.

URL="http://0.0.0.0:8888/healthz"
TIMEOUT=5 # Timeout in seconds

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

Expand Down
1 change: 0 additions & 1 deletion roles/edpm_telemetry_power_monitoring/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
become: true
ansible.builtin.systemd:
name: edpm_kepler.service
enabled: true
state: restarted

- name: List deployed health check scripts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"privileged": "true",
"restart": "always",
"ports": ["8888:8888"],
"command": "-v 2",
"net": "host",
"command": "-v=2",
"recreate": true,
"environment": {
"ENABLE_GPU": "true",
"EXPOSE_CONTAINER_METRICS": "true",
"ENABLE_PROCESS_METRICS": "true",
"EXPOSE_ESTIMATED_IDLE_POWER_METRICS": "true",
"EXPOSE_VM_METRICS": "true",
"EXPOSE_ESTIMATED_IDLE_POWER_METRICS": "false",
"LIBVIRT_METADATA_URI": "http://openstack.org/xmlns/libvirt/nova/1.1"
},
{% if edpm_telemetry_power_monitoring_healthcheck %}
Expand All @@ -21,7 +23,7 @@
"volumes": [
"/lib/modules:/lib/modules:ro",
"/run/libvirt:/run/libvirt:shared,ro",
"/sys/:/sys/",
"/sys:/sys",
"/proc:/proc"
]
}

0 comments on commit a8a50e2

Please sign in to comment.