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
.
Mar 19, 2023 (9 months ago)
Shravan
07:23 PMIn 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
02:53 AMnitya-signoz
04:40 AMShravan
05:14 AMOTEL 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
05:38 AMPrashant
05:39 AMglobal.clusterName
global configuration.Prashant
05:40 AMShravan
05:43 AMhttps://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
05:46 AMShravan
05:48 AMglobal:
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
05:50 AMpresets
sectionShravan
05:58 AMSigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Extracting Custom Fields as Attributes from Log in SigNoz
Harald wants to have custom fields from their body parsed as attributes in the SigNoz logger. They have tried implementing suggestions from nitya-signoz and Prashant, but the issue remains unsolved due to a potential race condition encountered while executing the code. They have provided a full example using Kind for further assistance.
JSON Parsing Issue with Logs in Signoz
Androw had trouble parsing logs with JSON in Signoz. nitya-signoz suggested changes to config, which resolved the issue after Androw added the missing field 'logsCollection'.
Troubleshooting Signoz Deployment for Log Collection on OCI k8s Cluster
sudhanshu faces issues with log collection despite successful application performance monitoring after deploying Signoz on OCI k8s cluster. Prashant suggests updating paths used for log collection and verifying container logs on the nodes. Log files' paths seem correct, but issues persist. Further solutions are needed.
Resolving Cluster Name Issue in AWS EKS with SigNoz
Ajay had an issue with SigNoz not populating cluster names in AWS EKS. Srikanth and Prashant suggested settings in the values.yaml and `global.clusterName` respectively.
Troubleshooting K8s-infra Blacklist Issues
Saad reported a problem where unwanted logs from namespaces were still appearing. Prashant identified a typographical error with 'logCollection' needing to be 'logsCollection'.