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

[Rhythm] Metrics generator read from kafka first pass #4359

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

mdisibio
Copy link
Contributor

What this PR does:
If enabled, reads from kafka every 2 seconds. The data is sent to span metrics and service graphs, but not local blocks, to ensure that it doesn't get flushed to storage, which is now the task of the block builder.

TODO - Maintain a separate local blocks processor to serve queries over recent data (that doesn't flush).

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

I'd prefer to try group consuming, it'd simplify a lot the kafka logic. I'm ok to merge this to get things moving 🚀

modules/generator/config.go Outdated Show resolved Hide resolved
modules/generator/generator_kafka.go Outdated Show resolved Hide resolved
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Nice! 🚀

@mdisibio mdisibio merged commit 471192c into grafana:rhythm Nov 21, 2024
10 of 16 checks passed
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.

2 participants