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

Follow up for Add automated documentation for metrics #6256

Closed
avlitman opened this issue Jan 23, 2023 · 13 comments
Closed

Follow up for Add automated documentation for metrics #6256

avlitman opened this issue Jan 23, 2023 · 13 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation. priority/backlog Higher priority than priority/awaiting-more-evidence.
Milestone

Comments

@avlitman
Copy link
Contributor

avlitman commented Jan 23, 2023

This Issue will detail the follow up suggestions that need to be implemented and/or discussed:

Follow up for: #6114:

  1. Add link to the metrics doc to the main README.
  2. Add condition to the log message to be more specific, like "webhook and metrics" where apt, or just "with webhooks".
  3. Update metricsdocs file to use Go template instead of creating a whole bunch of constants. Example template:
const metricsTemplate = `# Operator Metrics
This document aims to help users that are not familiar with metrics exposed by this operator.
The metrics documentation is auto-generated by the utility tool \"monitoring/metricsdocs\" and reflects all of the metrics that are exposed by the operator.

## Operator Metrics List
{{range .}}
### {{.Name}}
**Description:** {{.Description}}

**Type**:  {{.Type}}
{{end}}

## Developing new metrics
After developing new metrics or changing old ones, please run \"make generate-metricsdocs\" to regenerate this document.

If you feel that the new metric doesn't follow these rules, please change \"monitoring/metricsdocs\" according to your needs.

Then you can render this template by running something like:

tmpl := template.New("Operator metrics")

tmpl, err := tmpl.Parse(metricsTemplate)
// handle error

out := &bytes.Buffer{}
mList := metricList{}
err = tmpl.Execute(out, mList)
// handle error
  1. Moving the common generator code to a library. The generator should live in the operator project, but its helpers can still can be moved to a common place.
@avlitman avlitman changed the title Follow up for Add automated documentation for metrics #6114 Follow up for Add automated documentation for metrics Jan 23, 2023
@theishshah theishshah added the kind/documentation Categorizes issue or PR as related to documentation. label Jan 25, 2023
@theishshah theishshah added this to the v1.28.0 milestone Jan 25, 2023
@varshaprasad96
Copy link
Member

@avlitman is this issue being worked on? Would we able to get this in by next release (1.28). If not, please let us know, we can move it to the next one. Thanks!

@oceanc80 oceanc80 modified the milestones: v1.28.0, v1.29.0 Feb 23, 2023
@avlitman
Copy link
Contributor Author

avlitman commented Feb 26, 2023

@avlitman is this issue being worked on? Would we able to get this in by next release (1.28). If not, please let us know, we can move it to the next one. Thanks!

As we discussed in private. Postponed to the next version (1.29.0).

@varshaprasad96
Copy link
Member

@avlitman any inputs or discussion on this issue. If so, could you please update it with nay action items which need to be done to close it. We were triaging this issue for 1.29 (scheduled to release on May 31, 2023), please let us know you would like to have the issue in there.

@everettraven everettraven modified the milestones: v1.29.0, v1.30.0 May 31, 2023
@oceanc80
Copy link
Collaborator

@avlitman Do you think this will land for 1.30 (scheduled to release on Monday June 26, 2023)? If not, we can push this to the 1.31 milestone.

@sradco
Copy link
Contributor

sradco commented Jun 26, 2023

@oceanc80 Please push this, We had to also postpone working on this due to other obligations.

@avlitman
Copy link
Contributor Author

avlitman commented Jun 26, 2023

@oceanc80 Please push this, We had to also postpone working on this due to other obligations.

+1 Thanks @sradco.

@oceanc80 sorry for the late response, do we know the date for 1.31? so I will make sure to update here if this is ready.

Thanks a lot.

@oceanc80 oceanc80 modified the milestones: v1.30.0, v1.31.0 Jun 26, 2023
@oceanc80
Copy link
Collaborator

@avlitman Date for 1.31 is so far scheduled for July 24.

@varshaprasad96
Copy link
Member

@avlitman Just following up here. Would it possible to close this issue before 1.31 release? Thanks for working on this!

@avlitman
Copy link
Contributor Author

@varshaprasad96 Hi, we have additional improvements for operator-sdk and we prefer to do it with this issue together. Please postpone to 1.32, thanks!

@everettraven everettraven modified the milestones: v1.31.0, v1.32.0 Jul 18, 2023
@varshaprasad96
Copy link
Member

@avlitman Moving this issue to backlog. Once we have the PR ready, we can move it back to milestone. Does that sound fine?

@avlitman
Copy link
Contributor Author

Yes, thank you and sorry we couldn't work on this.

@varshaprasad96 varshaprasad96 added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Aug 21, 2023
@varshaprasad96 varshaprasad96 modified the milestones: v1.32.0, Backlog Aug 21, 2023
@avlitman
Copy link
Contributor Author

avlitman commented Oct 2, 2023

@varshaprasad96 Hi created the pr again, can review: #6588.
Sorry it took so long just the team was focused on other projects.

@everettraven
Copy link
Contributor

#6588 has merged - closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/documentation Categorizes issue or PR as related to documentation. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

6 participants