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

[ingester] fix write metrics is 0 after exporting metrics #6394

Merged
merged 2 commits into from May 11, 2024

Conversation

lzf575
Copy link
Contributor

@lzf575 lzf575 commented May 11, 2024

目前 metric 的结构定义document在 libs中,
如果需要实现 exporter 的接口,由于import 包的问题,不能写到libs
于是在外边,重定义了doument, 名为 exportDocument,实现exporter的接口。
重定义的exportDocument,直接调用document的接口时,存在未知原因,导致写入的数据为0.
只需要转下指针就可以了

This PR is for:

  • Server

@lzf575 lzf575 requested a review from sharang May 11, 2024 06:00
@lzf575 lzf575 marked this pull request as ready for review May 11, 2024 09:31
@sharang sharang enabled auto-merge (rebase) May 11, 2024 10:32
@sharang sharang merged commit ddb62c0 into main May 11, 2024
11 checks passed
@sharang sharang deleted the feature-test-export-zero branch May 11, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants