i have setup kubernetes metrics in signoz, i was c...
# support
r
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
@Prashant Shahi
p
you can use
k8s_container_name
legend in the chart to identify them better
r
@Prashant Shahi and @Pranay still am unable to get container name in custom dashboard
p
@Rahul Tiwari you will have to enclose them in double curly braces.
{{k8s_container_name}}
r
@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
@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
@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
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
It is AWS EKS
@Prashant Shahi i tried the same query as provided by you, but getting the no data to display message.
p
@Rahul Tiwari let me spin up an eks cluster to test it out and get back to you.
r
@Prashant Shahi ok FYI i am using AWS EKS v1.19.15