#support

Updating signoz to 0.17.0 - Adding k8s_cluster_name

TLDR Shravan upgraded to signoz 0.17.0 and noticed k8s_cluster_name as empty. Prashant explained that the cluster name configuration has moved to global scope and suggested setting it using global.clusterName.

Powered by Struct AI
Mar 19, 2023 (9 months ago)
Shravan
Photo of md5-23d9a9ef8569484aba646a65ec1dc58f
Shravan
07:23 PM
I have upgraded signoz from 0.14.0 to 0.17.0
In logs i see k8s_cluster_name as empty
k8s_cluster_name was not there in 0.14.0
Image 1 for I have upgraded signoz from 0.14.0 to 0.17.0
In logs i see k8s_cluster_name as empty
k8s_cluster_name was not there in 0.14.0
Mar 20, 2023 (9 months ago)
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
02:53 AM
nitya-signoz may have more insights here
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
04:40 AM
I think things have changed in the helm chart, Prashant can you help here, this issue was reported by another user as well.
Shravan
Photo of md5-23d9a9ef8569484aba646a65ec1dc58f
Shravan
05:14 AM
nitya-signoz In Helm 0.12.0
OTEL collector has these values
extract:
          metadata:
            - k8s.namespace.name
            - k8s.pod.name
            - k8s.pod.uid
            - k8s.pod.start_time
            - k8s.deployment.name
            - k8s.node.name

do i have to add cluster meta data here
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
05:38 AM
Cluster name configuration has been moved to global scope to keep consistent with SigNoz and K8s-Infra charts.
05:39
Prashant
05:39 AM
You can set cluster name meta using global.clusterName global configuration.
05:40
Prashant
05:40 AM
It is recommended to be set to identify source cluster of the telemetry data (traces, metrics, and logs).
Shravan
Photo of md5-23d9a9ef8569484aba646a65ec1dc58f
Shravan
05:43 AM
Prashant I have this architecture setup
https://signoz.io/assets/images/n_collectors-af31d02c2a41866aca6410976c4e4c86.png

So in each signoz-client signoz/k8sinfra override-values.yaml i have to set global.clusterName
Am i correct
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
05:46 AM
Not across each signoz-client, but across each independent k8s infra chart installation and 1 for signoz chart cluster.
Shravan
Photo of md5-23d9a9ef8569484aba646a65ec1dc58f
Shravan
05:48 AM
global:
  clusterName: "stage"
k8s-infra:
presets:
  logCollection:
    # whether to enable log collection
    enabled: true
    blacklist:
      # whether to enable blacklisting
      enabled: true
      # which pods to exclude
      pods:
          my-app

Prashant is this correct
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
05:50 AM
yes, it looks good, except for the indentation for presets section
Shravan
Photo of md5-23d9a9ef8569484aba646a65ec1dc58f
Shravan
05:58 AM
yeah, its a typo thanks

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community