Servers names

19 views
Skip to first unread message

Tuna Bozkır

unread,
Mar 22, 2021, 10:58:22 AM3/22/21
to Prometheus Developers
Hello, I want to take all servers name and I tried: up{job="Server_All"}
And output is :

up{Active="true",DN="CN=SvTSTD12,OU=Test,OU=Xxx,OU=Comp,DC=e..,DC=b..",Domain="Est",Site="eeee",instance="svss",job="Server_All"}         :            1 

But I want to take one of label not a value(CN: SvTS...). 
How can I do that ? Thank you for helping.

Stuart Clark

unread,
Mar 22, 2021, 11:07:06 AM3/22/21
to Tuna Bozkır, Prometheus Developers
What tool are you using to extract this information? If Grafana then you
can choose which labels to display.

Alternatively if you are just wanting a listing of all unique DN labels
you could do something like "sum by (DN) (up)"

--
Stuart Clark

Tuna Bozkır

unread,
Mar 22, 2021, 11:12:37 AM3/22/21
to Stuart Clark, Prometheus Developers
Thanks, I'll check it out.
Reply all
Reply to author
Forward
0 new messages