mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Improves visualization of containers/pods in flows
This commit is contained in:
parent
57f56d1fc3
commit
ae4770fe7d
4 changed files with 60 additions and 70 deletions
|
|
@ -229,13 +229,27 @@ function format_utils.formatMillis(x)
|
|||
end
|
||||
|
||||
function format_utils.formatContainer(cont)
|
||||
local name = ''
|
||||
|
||||
if cont["k8s.name"] then
|
||||
return cont["k8s.name"]
|
||||
name = cont["k8s.name"]
|
||||
elseif cont["docker.name"] then
|
||||
return cont["docker.name"]
|
||||
name = cont["docker.name"]
|
||||
elseif cont["id"] then
|
||||
name = cont["id"]
|
||||
end
|
||||
|
||||
return cont["id"]
|
||||
return string.format("%s", name)
|
||||
end
|
||||
|
||||
function format_utils.formatPod(cont)
|
||||
local name = ''
|
||||
|
||||
if cont["k8s.pod"] then
|
||||
name = cont["k8s.pod"]
|
||||
end
|
||||
|
||||
return string.format("%s", name)
|
||||
end
|
||||
|
||||
function format_utils.formatExporterInterface(port_idx, port_info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue