website icon indicating copy to clipboard operation
website copied to clipboard

Ameliorate the generated list of metrics page to be updated

Open ronaldngounou opened this issue 8 months ago • 6 comments

Improve the generated list of metrics page, URL https://etcd.io/docs/v3.5/metrics/ Image

Tasks:

  • Improve the rendering
  • Automatise this process

ronaldngounou avatar Mar 15 '26 04:03 ronaldngounou

/help-wanted

ronaldngounou avatar Mar 15 '26 04:03 ronaldngounou

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:

Image

christophsj avatar Mar 23 '26 14:03 christophsj

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?

ronaldngounou avatar Mar 24 '26 00:03 ronaldngounou

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

christophsj avatar Mar 24 '26 09:03 christophsj

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.

ronaldngounou avatar Mar 26 '26 16:03 ronaldngounou

/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.

AR21SM avatar Apr 24 '26 11:04 AR21SM