Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAccess to the hashmap returned by a query #2404
Comments
This comment has been minimized.
This comment has been minimized.
|
You can try something like |
JeromeVi
closed this
Mar 8, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
JeromeVi commentedFeb 7, 2017
•
edited
Hi, I know it's not an issue but maybe you could think about your doc with my question (I don't criticize it !)
What did you do?
I made a query
container_last_seen[10s]that returns me a list of JSON containing a lot of informations about "container". And I want to take only thenamebut I don't know how to make my query because I can't found example in the documentation, I mean I didcontainer_last_seen{name="oneOfTheNames"}[10s]but it only returns me the one with this name so it's right despite it's not what I want to do.container_last_seen{container_label_com_docker_compose_config_hash="505d1197fc3598a3243d441d7952d2dff037f28b2dc9fe08be748d386a3f593b",container_label_com_docker_compose_container_number="1",container_label_com_docker_compose_oneoff="False",container_label_com_docker_compose_project="mgmtdockergui",container_label_com_docker_compose_service="app",container_label_com_docker_compose_version="1.10.0",id="/docker/1cee714ccaa50710460ea6b546558c6743687fc7d159ff7eed6dc037ad290c24",image="jeromevi/mgmt-docker-ui",instance="cadvisor:8080",job="cadvisor",name="mgmtdockergui_app_1"}What did you expect to see?
The expected result is something like `container_last_seen{name="mgmtdockergui_app_1"}
So someone could help me to make a the query ? Or maybe give me hints and tips about querying ?