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

WIP: integrating datadog exporter from @jdrouet #107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: cargo fmt
  • Loading branch information
bpetit committed May 6, 2021
commit 6c4602641b09d82d1e7d5ecc6ee6609a52fa5cc9
6 changes: 4 additions & 2 deletions src/exporters/datadog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,16 @@ impl DatadogExporter {
.parse::<u32>()
.expect("Wrong step_duration_nano value, should be a number of nano seconds");

info!("Measurement step is: {}s{}ns", step_duration, step_duration_nano);
info!(
"Measurement step is: {}s{}ns",
step_duration, step_duration_nano
);
if let Some(timeout) = parameters.value_of("timeout") {
let now = Instant::now();
let timeout = timeout
.parse::<u64>()
.expect("Wrong timeout value, should be a number of seconds");


while now.elapsed().as_secs() <= timeout {
warn!("iterate");
self.iterate(&client);
Expand Down