-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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(telemetry): adds reads and writes #25409
Conversation
818eed9
to
ad415c4
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.
Just one small thing for deps cleanup.
influxdb3_telemetry/Cargo.toml
Outdated
tonic.workspace = true | ||
tower.workspace = true |
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.
Are these used since moving away from the middleware/interceptor approach?
influxdb3_server/src/http.rs
Outdated
let num_lines = result.line_count; | ||
let payload_size = body.len(); | ||
let telem_store = Arc::clone(&self.common_state.telemetry_store); | ||
tokio::spawn(async move { |
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.
I don't think we want to spawn on every write call. We should be able to just call add_write_metrics on the store without this.
@@ -146,6 +151,13 @@ impl QueryExecutor for QueryExecutorImpl { | |||
let token = token.permit(); | |||
|
|||
debug!("execute stream of query results"); | |||
|
|||
let telem_clone = Arc::clone(&self.telemetry_store); | |||
tokio::spawn(async move { |
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.
Same as before, we don't want to spawn on every query.
ad415c4
to
0930477
Compare
- instrumented code to get read and write measurement - introduced EventsBucket for collection of reads/writes - sampler now samples every minute for all metrics (including reads/writes) - other tidy ups closes: #25372
0930477
to
62093bd
Compare
closes: #25372