-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify use of double colon (::) notation in Collector config YAML paths #4484
Comments
@open-telemetry/collector-approvers @open-telemetry/collector-maintainers please take a look |
To be clear: |
I'd rather use the dot notation, which is more Pythonesque and hence closer to Python? Although depending on the language one might recognize See https://github.com/wwkimball/yamlpath/wiki/Segments-of-a-YAML-Path |
The main downside of dot notation I see (which is the reason we use To put a concrete example, take the following dockerstats receiver configuration from its README: receivers:
docker_stats:
metrics:
container.cpu.percent:
enabled: false
container.cpu.utilization:
enabled: true This configuration disables the |
That's a great reason and we should put it that way in the doc, what do you think @tiffany76 ? |
Desired feature or idea: The use of a double colon (::) is valid syntax for configuring nested settings in a Collector config (for example,
service::telemetry::metrics::level: detailed
), but the double colon is not standard YAML notation. The use of the double colon should be explained in the Collector Configuration page.Additional context: For reference, see #4322 (comment).
The text was updated successfully, but these errors were encountered: