You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: receiver/receivercreator/README.md
+100-5Lines changed: 100 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -454,11 +454,10 @@ receiver_creator/metrics:
454
454
watch_observers: [ k8s_observer ]
455
455
discovery:
456
456
enabled: true
457
-
# Define which receivers should be ignored when provided through annotations
458
-
# ignore_receivers: []
459
457
```
460
458
461
-
Find bellow the supported annotations that user can define to automatically enable receivers to start collecting metrics signals from the target Pods/containers.
459
+
Find bellow the supported annotations that user can define to automatically enable receivers to start
460
+
collecting metrics signals from the target Pods/containers.
462
461
463
462
### Supported metrics annotations
464
463
@@ -511,11 +510,82 @@ The current implementation relies on the implementation of `k8sobserver` extensi
511
510
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
512
511
The hints are evaluated per container by extracting the annotations from each [`Port` endpoint](#Port) that is emitted.
513
512
513
+
### Supported logs annotations
514
+
515
+
This feature enables `filelog` receiver along with the `container` parser in order to collect logs from the discovered
where `busybox` is the name of the target container.
577
+
578
+
If a Pod is annotated with both container level hints and pod level hints the container level hints have priority and
579
+
the Pod level hints are used as a fallback (see detailed example bellow).
580
+
581
+
The current implementation relies on the implementation of `k8sobserver` extension and specifically
582
+
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
583
+
The hints are evaluated per container by extracting the annotations from each [`Pod Container` endpoint](#Pod Container) that is emitted.
0 commit comments