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
+96-3
Original file line number
Diff line number
Diff line change
@@ -458,7 +458,8 @@ receiver_creator/metrics:
458
458
# ignore_receivers: []
459
459
```
460
460
461
-
Find bellow the supported annotations that user can define to automatically enable receivers to start collecting metrics signals from the target Pods/containers.
461
+
Find bellow the supported annotations that user can define to automatically enable receivers to start
462
+
collecting metrics and logs signals from the target Pods/containers.
462
463
463
464
### Supported metrics annotations
464
465
@@ -511,11 +512,76 @@ The current implementation relies on the implementation of `k8sobserver` extensi
511
512
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
512
513
The hints are evaluated per container by extracting the annotations from each [`Port` endpoint](#Port) that is emitted.
513
514
515
+
### Supported logs annotations
516
+
517
+
This feature enables `filelog` receiver in order to collect logs from the discovered Pods.
where `busybox` is the name of the target container.
573
+
574
+
If a Pod is annotated with both container level hints and pod level hints the container level hints have priority and
575
+
the Pod level hints are used as a fallback (see detailed example bellow).
576
+
577
+
The current implementation relies on the implementation of `k8sobserver` extension and specifically
578
+
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
579
+
The hints are evaluated per container by extracting the annotations from each [`Pod Container` endpoint](#Pod Container) that is emitted.
0 commit comments