Skip to content

Commit

Permalink
[receivercreator] fix typo in examples (open-telemetry#30227)
Browse files Browse the repository at this point in the history
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 <aboten@lightstep.com>
  • Loading branch information
2 people authored and cparkins committed Jan 10, 2024
1 parent f011dc0 commit 584146c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion receiver/receivercreator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ instantiate that receiver.
**receivers.&lt;receiver_type/id&gt;.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).

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 584146c

Please sign in to comment.