-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat(streaming): raw event connector #1720
base: main
Are you sure you want to change the base?
Conversation
ae3da9b
to
d15c55f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you start passing meter models.Meter
to some functions and kept meterSlug
in others? Why start doing it at all? Can't the connector query the meter from the repository?
1b4b83e
to
7a1e5cc
Compare
df8f6eb
to
7b17e96
Compare
@@ -100,6 +175,11 @@ func (c ClickHouseAggregationConfiguration) GetClientOptions() *clickhouse.Optio | |||
|
|||
// ConfigureAggregation configures some defaults in the Viper instance. | |||
func ConfigureAggregation(v *viper.Viper) { | |||
v.SetDefault("aggregation.engine", AggregationEngineClickHouseMV) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably we should change default to raw events
7b17e96
to
67bf402
Compare
As of today, OpenMeter uses ClickHouse materialized views to track meters. Events are inserted into a raw events table on which MVs are based. This PR moves the event insert logic out from the sink worker to the streaming connector and splits the connector into two different connectors:
PR review guide: