Derek Wang
12/16/2024, 6:34 PM<https://http-intake.logs.datadoghq.com/api/v2/logs?dd-api-key=xxx&ddsource=heroku&env=staging&service=bureau-staging&host=bureau-staging>
here, we use query parameters for source, environment, etc. how can we achieve the same configuration in signoz?
2. how to handle multiline logs from heroku?
we’re unsure how to handle multiline logs from heroku effectively in signoz.
3. how to change deploymentEnvironment
based on pod name?
our eks cluster contains apps for different environments (e.g., maitred, maitred-staging, and maitred-sandbox), all running under the default namespace.
is there a way to override the deploymentEnvironment field based on the pod name without changing the namespace?Derek Wang
12/16/2024, 6:34 PMglobal:
cloud: aws
clusterName: xxx
deploymentEnvironment: porter
otelCollectorEndpoint: ingest.us.signoz.cloud:443
otelInsecure: false
signozApiKey: xxxx
presets:
otlpExporter:
enabled: true
loggingExporter:
enabled: false
logsCollection:
enabled: true
whitelist:
enabled: true
signozLogs: false
namespaces:
- default
pods:
- .*
additionalExclude:
- namespace: default
podRegex: ^signoz.*
containers: []
additionalInclude: []
otelCollector:
config:
processors:
resource:
attributes:
actions:
- key: deploymentEnvironment
action: upsert
value: sandbox
# Apply if the pod name contains "sandbox"
conditions:
- key: k8s.pod.name
regex: .*sandbox.*
- key: deploymentEnvironment
action: upsert
value: staging
# Apply if the pod name contains "staging"
conditions:
- key: k8s.pod.name
regex: .*staging.*
- key: deploymentEnvironment
action: upsert
value: prod
# Apply if the pod name does not contain "sandbox" or "staging"
conditions:
- key: k8s.pod.name
regex: ^((?!sandbox|staging).)*$
nitya-signoz
12/17/2024, 5:39 AMDerek Wang
12/17/2024, 7:58 AMdeploymentEnvironment
?nitya-signoz
12/17/2024, 8:12 AMDerek Wang
12/17/2024, 8:17 AMnitya-signoz
12/17/2024, 8:26 AM