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

feat(telemetry): static values, cpu and mem metrics gathering #25380

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

praveen-influx
Copy link
Contributor

@praveen-influx praveen-influx commented Sep 23, 2024

  • basic setup to initialise the static values for telemetry store added.
  • cpu and memory used by influxdb3 is sampled at 1min interval
  • some minor tidyups

Closes: #25370, #25371

@praveen-influx praveen-influx force-pushed the praveen/telemetry-static-values branch 14 times, most recently from b223b2c to 301ac6c Compare September 24, 2024 13:33
Copy link
Member

@pauldix pauldix left a comment

Choose a reason for hiding this comment

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

Overall looks good, just a few comments.

influxdb3/src/commands/serve.rs Show resolved Hide resolved
influxdb3/src/commands/serve.rs Show resolved Hide resolved
tokio::spawn(async move {
let telem_sender = TelemetrySender::new(
reqwest::Client::new(),
"https://telemetry.influxdata.foo.com".to_owned(),
Copy link
Member

Choose a reason for hiding this comment

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

This getting updated in a follow on PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - this will be updated in one of the follow on PRs

influxdb3_telemetry/src/sender.rs Outdated Show resolved Hide resolved
influxdb3_telemetry/src/sender.rs Outdated Show resolved Hide resolved
@praveen-influx praveen-influx marked this pull request as ready for review September 24, 2024 15:47
- basic setup to initialise the static values for telemetry store added.
- cpu and memory used by influxdb3 is sampled at 1min interval
- some minor tidyups

Closes: #25370, #25371
@praveen-influx praveen-influx merged commit 29daa83 into main Sep 24, 2024
12 checks passed
num_cpus: usize,
) -> Arc<TelemetryStore> {
let os = std::env::consts::OS;
let influxdb_pkg_version = env!("CARGO_PKG_VERSION");
Copy link
Contributor

Choose a reason for hiding this comment

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

@praveen-influx - sorry didn't catch this during review, but I think it would be worth re-using from the influxdb3_process workspace crate for some of these environment variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can use it for the version as built here.

I'll probably need other lookup for the package name CARGO_PKG_NAME - is it worth adding that lookup to the influxdb3_process crate as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

is it worth adding that lookup to the influxdb3_process crate as well?

I think it would be appropriate. It sounds like we may also need to make some adjustments in influxdb3_process for differentiating Pro vs. OSS but that is TBD pending discussion with the perf team by the looks of it.

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.

Send telemetry reports for static values
3 participants