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
+111-3Lines changed: 111 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -456,9 +456,12 @@ receiver_creator/metrics:
456
456
enabled: true
457
457
# Define which receivers should be ignored when provided through annotations
458
458
# ignore_receivers: []
459
+
# define which paths should be excluded from collection
460
+
# exclude_paths: []
459
461
```
460
462
461
-
Find bellow the supported annotations that user can define to automatically enable receivers to start collecting metrics signals from the target Pods/containers.
463
+
Find bellow the supported annotations that user can define to automatically enable receivers to start
464
+
collecting metrics signals from the target Pods/containers.
462
465
463
466
### Supported metrics annotations
464
467
@@ -511,11 +514,91 @@ The current implementation relies on the implementation of `k8sobserver` extensi
511
514
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
512
515
The hints are evaluated per container by extracting the annotations from each [`Port` endpoint](#Port) that is emitted.
513
516
517
+
### Supported logs annotations
518
+
519
+
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.
590
+
591
+
If a Pod is annotated with both container level hints and pod level hints the container level hints have priority and
592
+
the Pod level hints are used as a fallback (see detailed example bellow).
593
+
594
+
The current implementation relies on the implementation of `k8sobserver` extension and specifically
595
+
the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go).
596
+
The hints are evaluated per container by extracting the annotations from each [`Pod Container` endpoint](#Pod Container) that is emitted.
0 commit comments