Probe lookup added to exporter navbar when exporter IP is available (#10049)

This commit is contained in:
Manuel Ceroni 2026-02-13 11:01:44 +01:00 committed by GitHub
parent 04a0f60073
commit a6c39b6734
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -365,13 +365,19 @@ function exporters_utils.printNavbar(ifid, page, ip, probe_uuid, num_exporters)
if(num_exporters == nil) then num_exporters = 0 end
-- Resolve probe information if available
if not isEmptyString(probe_uuid) then
nprobe_info = getProbeFromUUID(probe_uuid)
if isEmptyString(ip) and nprobe_info then
ip = nprobe_info["probe.ip"]
end
else
if not isEmptyString(ip) then
local probe,_ = exporters_utils.getProbeUUID(ip)
if probe then
nprobe_info = getProbeFromUUID(probe)
end
end
end
if nprobe_info then