From 584146c1b98701a0f9b9f2c7a14911195853218c Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Fri, 29 Dec 2023 09:22:08 +0800 Subject: [PATCH] [receivercreator] fix typo in examples (#30227) fix typo in examples, since the `observe_nodes`, `observe_services` is [default](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/observer/k8sobserver/README.md) to be `false`, so the receiver creator who wants to add endpoint of k8s.node and k8s.service will not work if the two config is `false` --------- Co-authored-by: Alex Boten --- receiver/receivercreator/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/receiver/receivercreator/README.md b/receiver/receivercreator/README.md index c8e59cfee632..20cd462e7d2e 100644 --- a/receiver/receivercreator/README.md +++ b/receiver/receivercreator/README.md @@ -43,7 +43,7 @@ instantiate that receiver. **receivers.<receiver_type/id>.rule** Rule expression using [expvar -syntax](https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md). +syntax](https://github.com/antonmedv/expr/blob/master/docs/language-definition.md). Variables available are detailed below in [Rule Expressions](#rule-expressions). @@ -247,6 +247,8 @@ targeting it will have different variables available. extensions: # Configures the Kubernetes observer to watch for pod start and stop events. k8s_observer: + observe_nodes: true + observe_services: true host_observer: receivers: