Skip to content

How to get containers' names on machines? #2329

@hedongyan

Description

@hedongyan

Hello, My input is many ip (ip1,ip2,ip3...), and cadvisor, prometheus, redis had been deployed on machines. The expected output is all containers' matrics. However, querying matrics in prometheus need CONTAINER NAME! What should I do? How to get all container name that running on the specific machine when we known its ip (such as localhost)? Of course, I know we could use "docker ps".But due to limitation of access, we couldn't use SSH because it's not safe. I hope the only port we could access are prometheus and cadvisor. Cloud it be possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions