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

Recognize exemplar record type in WAL watcher metrics #11008

Merged
merged 2 commits into from Jul 18, 2022

Conversation

LeviHarrison
Copy link
Member

I think this was left out when exemplar support was added. Without it when an exemplar record is read prometheus_wal_watcher_records_read_total{type="unknown"} is incremented, not ...{type="exemplar"}.

Signed-off-by: Levi Harrison <git@leviharrison.dev>
Copy link
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

To avoid that from happening in future (yes we have more types coming up), how about we add a String() method for record.Type? And get rid of recordType() function that way.

Signed-off-by: Levi Harrison <git@leviharrison.dev>
@LeviHarrison
Copy link
Member Author

Sounds good

@codesome codesome merged commit 3d53835 into prometheus:main Jul 18, 2022
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