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

[cmd/mdatagen] Mdatagen support histogram metrics #26558

Conversation

sakulali
Copy link
Contributor

@sakulali sakulali commented Sep 10, 2023

Description:
Metadata generator support histogram metrics

Link to tracking Issue:
#26118

Testing:
make generate
make mdatagen-test
make chlog-validate

Documentation:
cmd/mdatagen/documentation.md

@sakulali sakulali requested a review from dmitryax as a code owner September 10, 2023 04:21
@sakulali sakulali requested a review from a team September 10, 2023 04:21
@github-actions github-actions bot added the cmd/mdatagen mdatagen command label Sep 10, 2023
@sakulali
Copy link
Contributor Author

sakulali commented Sep 10, 2023

Occasional e2e-tests(kubernetes-test) failures, hello @atoulme seems to PR restart job on failure try to solve that.

image

func (m *metric{{ $name.Render }}) recordDataPoint(start pcommon.Timestamp, ts pcommon.Timestamp, val {{ $metric.Data.MetricValueType.BasicType }}
{{- range $metric.Attributes -}}, {{ .RenderUnexported }}AttributeValue {{ (attributeInfo .).Type.Primitive }}{{ end }}) {
func (m *metric{{ $name.Render }}) recordDataPoint(start pcommon.Timestamp, ts pcommon.Timestamp
{{- if eq $metric.Data.Type "Histogram" }}, count uint64, sum float64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about bucket values? Histograms without buckets are invalid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks for reviewing my code. I realize that I overlooked the details in docs data-model_Histogram, spec_Histogram and proto_Histogram

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @dmitryax , would you be available to help review the code again if possible, i would like to assist in resolving this issue, thanks

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 29, 2023
@sakulali
Copy link
Contributor Author

sakulali commented Sep 29, 2023

Could this PR hold on?

@github-actions github-actions bot removed the Stale label Sep 30, 2023
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 15, 2023
@sakulali sakulali force-pushed the fix-metadata-generator-histogram branch from 28459d8 to 69ed578 Compare October 25, 2023 17:45
@github-actions github-actions bot removed the Stale label Oct 26, 2023
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 10, 2023
@atoulme atoulme removed the Stale label Nov 10, 2023
Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me, @dmitryax should review as codeowner.

@sakulali sakulali requested a review from dmitryax November 24, 2023 17:31
Copy link
Contributor

github-actions bot commented Dec 9, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 9, 2023
@sakulali sakulali force-pushed the fix-metadata-generator-histogram branch from 69ed578 to 7eaa323 Compare December 21, 2023 13:57
@github-actions github-actions bot removed the Stale label Dec 22, 2023
Copy link
Contributor

github-actions bot commented Jan 5, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 5, 2024
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/mdatagen mdatagen command Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants