https://signoz.io logo
#support
Title
# support
r

Rahul Tiwari

05/11/2022, 3:11 PM
i have setup kubernetes metrics in signoz, i was creating custom dashboard for kubernetes metrics like container cpu limit for that i used the query available on official site "k8s_container_cpu_limit" but in that i cannot see which container is taking how much cpu limit, can anyone help me on this.
v

Vishal Sharma

05/11/2022, 3:24 PM
@Prashant Shahi
p

Prashant Shahi

05/11/2022, 3:29 PM
you can use
k8s_container_name
legend in the chart to identify them better
r

Rahul Tiwari

05/12/2022, 6:34 AM
@Prashant Shahi and @Pranay still am unable to get container name in custom dashboard
p

Prashant Shahi

05/12/2022, 6:47 AM
@Rahul Tiwari you will have to enclose them in double curly braces.
{{k8s_container_name}}
r

Rahul Tiwari

05/12/2022, 9:19 AM
@Prashant Shahi any promql query in which I can get kubernetes pod information like CPU limit, CPU request with specific to namespace
1
Can anyone help me on this, currently am stuck in it.
1
p

Prashant Shahi

05/12/2022, 5:32 PM
@Rahul Sharma You can take this gist as a reference. https://gist.github.com/max-rocket-internet/6a05ee757b6587668a1de8a5c177728b
you can import this dashboard for those metrics.
r

Rahul Tiwari

05/13/2022, 6:32 AM
@Prashant Shahi i tried it but none of the queries are working on signoz.
@Prashant Shahi i have uploaded the JSON file which you have provided, after which am getting few metrics related to K8S, but for CPU UTILIZATION and MEMORY UTILIZATION am getting as no data. am running the below query.CPU Utilization PromQL = sum(rate(container_cpu_utilization{k8s_namespace_name!="breeze-qa"}[5m])) by (k8s_container_name,k8s_pod_name) Legend Format = {{k8s_container_name}} in {{k8s_pod_name}} Memory Utilization PromQL = k8s_pod_memory_usage{k8s_namespace_name!="kube-system"} Legend Format = {{k8s_pod_name}}
1
p

Prashant Shahi

05/13/2022, 3:37 PM
I just tested the same dashboard in a fresh k8s cluster with k8s metrics integrated. It looks good to me.
Can you share more details? cloud or on-premise k8s cluster? size of the k8s cluster?
r

Rahul Tiwari

05/13/2022, 4:38 PM
It is AWS EKS
@Prashant Shahi i tried the same query as provided by you, but getting the no data to display message.
p

Prashant Shahi

05/16/2022, 5:42 AM
@Rahul Tiwari let me spin up an eks cluster to test it out and get back to you.
r

Rahul Tiwari

05/16/2022, 6:17 AM
@Prashant Shahi ok FYI i am using AWS EKS v1.19.15
4 Views