Skip to content

Commit a7132e2

Browse files
NSSPKrishnaNSSPKrishna
andauthored
fix: Logs for the docker (#2501)
* fix: Logs for the docker * chore: Updated the identifier --------- Co-authored-by: NSSPKrishna <[email protected]>
1 parent 5c111b4 commit a7132e2

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

entity-types/infra-container/definition.stg.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,33 @@ synthesis:
7171
# and select the dashboard.
7272
otel.library.name:
7373
entityTagName: instrumentation.name
74-
74+
75+
- ruleName: infra_container_container_id_stg3
76+
identifier: container.id
77+
name: container.name
78+
encodeIdentifierInGUID: true
79+
conditions:
80+
- attribute: eventType
81+
value: Log
82+
- attribute: newrelic.source
83+
value: 'api.logs.otlp'
84+
- attribute: nr.entity_type
85+
value: "CONTAINER"
86+
tags:
87+
# Default resource attributes
88+
container.runtime:
89+
container.image.name:
90+
container.hostname:
91+
# Optional resource attribute
92+
container.image.id:
93+
# Environment resource attributes
94+
host.type:
95+
cloud.provider:
96+
cloud.account.id:
97+
cloud.region:
98+
host.id:
99+
host.name:
100+
75101
# kube-state-metrics data via opentelemetry prometheusReceiver
76102
- ruleName: infra_container_composite
77103
compositeIdentifier:

0 commit comments

Comments
 (0)