Ameliorate the generated list of metrics page to be updated
Improve the generated list of metrics page, URL
https://etcd.io/docs/v3.5/metrics/
Tasks:
- Improve the rendering
- Automatise this process
/help-wanted
Hi! I am new to etcd and looking for ways to contribute. I could work on this :)
My idea would be to use Content adapters to generate dynamic pages based on the available txt files. Then link to that page instead of plain txt file. Is that what you had in mind? @ronaldngounou
The page could look something like this:
Thank you @christophsj for looking into this. Yes, using content adapters is a great idea and good step forward. Feel free to send a PR for this.
Also long-term, the task would be to capture the update when new metrics are added in etcd without having to update the text file. Is that also covered by content adapters?
I've created a PR, appreciate any feedback :)
I'd be glad to continue working on the point you mentioned about not having to update the text file. What is the source of truth for metrics if they're not stored in the .txt, where would we pull the data from?
Thanks
Let's hold on a little bit to gather diverse input from other maintenairs after KubeCon.
In the meantime, on
where would we pull the data from?
I started a thread on sig-etcd on this topic https://kubernetes.slack.com/archives/C3HD8ARJ5/p1774542863800789. I will look up how kubernetes is doing to understand similarities.
/assign I’ve been working on the long-term part of this for the last couple of days and should have a PR up soon.
I spent some time understanding how Kubernetes handles this without depending on .txt files. The general approach there is to scan the codebase and derive metrics information from source definitions, with stability metadata I’m following that direction here so the metrics docs can be generated from source instead of relying on .txt file. I’ll share a PR once I’ve cleaned up the implementation.