Skip to content
Snippets Groups Projects
Unverified Commit c8831576 authored by r0zehnal0vak's avatar r0zehnal0vak
Browse files

fix gpumon metric generation and update image

parent 9fd54edb
No related branches found
No related tags found
1 merge request!13fix gpumon metric generation and update image
Pipeline #632897 failed
...@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.4.0] - 2025-06-03
### Changed
- prevent failure when no passthrough vm_domain_file is found
- update base image version
## [1.3.4] - 2024-03-25 ## [1.3.4] - 2024-03-25
### Added ### Added
- cephpingmon added as optional module (default behavior unchanged), add fping dependency - cephpingmon added as optional module (default behavior unchanged), add fping dependency
......
FROM registry.gitlab.ics.muni.cz:443/cloud/container-registry/centos:7 FROM quay.io/centos/centos:stream9
ARG VERSION=unknown-version ARG VERSION=unknown-version
ARG BUILD_DATE=unknown-date ARG BUILD_DATE=unknown-date
......
jq jq
bash bash
gawk gawk
docker-client docker
curl
cronie cronie
smartmontools smartmontools
pciutils pciutils
......
...@@ -74,7 +74,9 @@ if [ -n "${GPU_DEVICES}" ]; then ...@@ -74,7 +74,9 @@ if [ -n "${GPU_DEVICES}" ]; then
if lspci -v -s "${i_gpu_device_location}" | grep -qE 'Kernel driver in use: .+'; then if lspci -v -s "${i_gpu_device_location}" | grep -qE 'Kernel driver in use: .+'; then
i_gpu_attached=1 i_gpu_attached=1
i_vm_domain_file="$(find_gpu_passthough_vm_manifest "${i_gpu_device_location}")" i_vm_domain_file="$(find_gpu_passthough_vm_manifest "${i_gpu_device_location}")"
i_vm_domain_name="$(basename $(echo "${i_vm_domain_file}" | head -1) | sed 's/.xml//g')" if [ -n "${i_vm_domain_file}" ]; then
i_vm_domain_name="$(basename "$(echo "${i_vm_domain_file}" | head -1)" | sed 's/.xml//g')"
fi
fi fi
printf '%s{device="%s",vendor="%s",location="%s",revision="%s",domain="%s"} %d\n' "${METRIC_NAME}" \ printf '%s{device="%s",vendor="%s",location="%s",revision="%s",domain="%s"} %d\n' "${METRIC_NAME}" \
"${i_gpu_device_model}" "${i_gpu_device_vendor}" "${i_gpu_device_location}" \ "${i_gpu_device_model}" "${i_gpu_device_vendor}" "${i_gpu_device_location}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment