I am querying the `signoz_metrics.time_series_v4` ...
# general
p
I am querying the
signoz_metrics.time_series_v4
table, but the
k8s_cluster_name
field is showing as blank. Below is the query I am using: SELECT * FROM signoz_metrics.time_series_v4 LIMIT 1; ┌─env─────┬─temporality─┬─metric_name────────┬─description────────┬─unit─┬─type─┬─is_monotonic─┬────────fingerprint─┬────unix_milli─┬─labels─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ default │ Cumulative │ container_cpu_time │ Container CPU time │ s │ Sum │ true │ 169513242719490275 │ 1724007600000 │ {"__name__":"container_cpu_time","__temporality__":"Cumulative","container_id":"1e993cb6698cc49c1360abc1ee823fac2ca712646da822a76b806a180340a70d","host_name":"my-release-k8s-infra-otel-agent-4g4c6","k8s_cluster_name":"","k8s_container_name":"telegraf-ds","k8s_namespace_name":"default","k8s_node_name":"i60037-a1539","k8s_pod_ip":"10.0.4.205","k8s_pod_name":"k8s-telegraf-ds-kzkw6","k8s_pod_start_time":"2024-07-04 075747 +0000 UTC","k8s_pod_uid":"0b569e89-aabc-4889-822d-a73a87b0694b","os_type":"linux","signoz_component":"otel-agent"} │ Problem: The
k8s_cluster_name
field is coming up as blank for all rows. Could this be a configuration issue in the SigNoz setup or with how metrics are being collected from Kubernetes? Can someone please help me understand why this is happening and how to resolve it?
v
Are you setting cluster name in your values file? I see you are using our helm chart.
p
Vibhu,
yes, we are using the helm chart to install the k8 infra otl agent.
v
Please set the cluster name in your values file.
p
Vibhu, Thanks for the update. i am using this helm install my-release signoz/k8s-infra --set otelCollectorEndpoint=http://172.29.112.15:4317 now how to set clsuter name. Please help
Thanks Vibhu, now its working fine . i have use this --set global.clusterName=signozpoc in helm
Vibhu,
how to set environment for APM name.
image.png
v
You need to set
deployment.environment
attribute from the place you are generating traces. Eg: If a java code base is emitting traces, please set the attribute there.
p
Vibhu,
so i need to connect with Dev team?