nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.39k stars 1.5k forks source link

Add container image name in Restfull Json API #1916

Open zjfspz opened 3 years ago

zjfspz commented 3 years ago

Is your feature request related to a problem? Please describe. I need to identify how many docker apps are opening each day and which one corresponds to. This is frustrating me, because it does not allow to correctly analyze the use of my applications.

Describe the solution you'd like The downloaded json file is perfect, I just need to include the name of the corresponding image.

Describe alternatives you've considered Look in the description and in the readme but I can't find that option enabled.

Additional context I hope I do not ask for something impossible or that requires a lot of work, I really think that it is not so difficult to add that information, since it is information that ctop can deliver.

nicolargo commented 3 years ago

Hi @zjfspz

I do not understand what do you need.

The JSON contains the name and the id of running containers:

[{'key': 'name', 'name': 'grafana', 'Names': ['grafana'], 'Id': '5f8abfeafe0a176954ca2a2062afcd07eb74988ddfbf6323fccd8e5f882b4e4b', 'Image': ['grafana/grafana:latest'], 'Status': 'running', 'Command': ['/run.sh'], 'cpu_percent': 0.0, 'memory_usage': None, 'io_r': None, 'io_w': None, 'network_rx': None, 'network_tx': None}, ...]

zjfspz commented 3 years ago

You are right, in the API (http://10.8.30.130:61208/api/3/docker) indicates the Image and all the information. What I was referring to is the API ( http://xxx.xxx.xxx:61208/api/3/docker/history) where the historical information does not allow identifying which image each container corresponds to. I hope to clarify your doubt.

El sáb, 14 ago 2021 a las 5:34, Nicolas Hennion @.***>) escribió:

Hi @zjfspz https://github.com/zjfspz

I do not understand what do you need.

The JSON contains the name and the id of running containers:

[{'key': 'name', 'name': 'grafana', 'Names': ['grafana'], 'Id': ' 5f8abfeafe0a176954ca2a2062afcd07eb74988ddfbf6323fccd8e5f882b4e4b', 'Image': ['grafana/grafana:latest'], 'Status': 'running', 'Command': ['/run.sh'], 'cpu_percent': 0.0, 'memory_usage': None, 'io_r': None, 'io_w': None, 'network_rx': None, 'network_tx': None}, ...]

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nicolargo/glances/issues/1916#issuecomment-898871370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4FUUGIMOLMX3YJII6KLDTT4Y2CDANCNFSM5B3MRVVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Jaime Saldias Porras 93465415

github-actions[bot] commented 6 days ago

This issue is stale because it has been open for 3 months with no activity.