Skip to content
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

Automate the Collector list of internal metrics using mdatagen docs #4523

Open
tiffany76 opened this issue May 22, 2024 · 2 comments
Open

Automate the Collector list of internal metrics using mdatagen docs #4523

tiffany76 opened this issue May 22, 2024 · 2 comments
Labels
CI/infra CI & infrastructure e1-hours Effort: < 8 hrs enhancement New feature or request sig:collector

Comments

@tiffany76
Copy link
Contributor

Desired feature or idea: The Collector's internal metrics were recently added to the metadata generating tool mdatagen in open-telemetry/opentelemetry-collector#10170. Basic documentation is now automatically generated in repo markdown files for each component, for example:

A manually compiled list of metrics is included on the internal telemetry page of the website, but concerns have been raised about maintaining it.

Can we incorporate the mdatagen automated docs into the OTel website?

Additional context:

  • Note that the metadata-generated docs do not list the metric level, which was the primary reason we added the list to the website docs. Could mdatagen's schema be modified to include an optional field for level?
  • This issue may relate to [Proposal] Automate reference documentation as YAML files community#1610 and other prior discussions on the topic of automation that I am not currently aware of.
@svrnm svrnm added sig:collector enhancement New feature or request labels May 23, 2024
@svrnm
Copy link
Member

svrnm commented May 23, 2024

Thanks for raising this issue.

We can (and should) incorporate that data into the otel website. Ideally this data flows into the registry and then we reuse it from there in the documentation.

To do so we need to collaborate with @open-telemetry/collector-approvers / @open-telemetry/collector-maintainers to automate that (and maybe enrich the metadata file even further)

@theletterf
Copy link
Member

We leverage mdatagen files in the Splunk distro's docs using client side JS. For example, this table...

https://docs.splunk.com/observability/en/gdi/opentelemetry/components/kubelet-stats-receiver.html#metrics

Is built using this file...

https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/kubeletstatsreceiver.yaml

...through this JS logic:

https://github.com/splunk/public-o11y-docs/blob/main/_static/jsonpull-splunk.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure e1-hours Effort: < 8 hrs enhancement New feature or request sig:collector
Projects
None yet
Development

No branches or pull requests

4 participants