Skip to content

Commit

Permalink
Merge pull request #42 from dfinity/metrics-cardinality
Browse files Browse the repository at this point in the history
A few more changes
  • Loading branch information
blind-oracle authored Sep 20, 2024
2 parents 26de8ca + 56441a6 commit 7df0c6b
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 171 deletions.
110 changes: 56 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@ pub struct Vector {
#[clap(env, long, default_value = "16MB", value_parser = parse_size_usize)]
pub log_vector_batch: usize,

/// Number of batches to store in the queue for the Flushers to consume.
/// So the maximum memory occupied by batch queue will be roughly
/// log_vector_batch*log_vector_batch_count, plus anything in the event queue (log_vector_buffer).
#[clap(env, long, default_value = "32")]
pub log_vector_batch_count: usize,

/// Vector batch flush interval
#[clap(env, long, default_value = "5s", value_parser = parse_duration)]
pub log_vector_interval: Duration,
Expand All @@ -452,6 +458,12 @@ pub struct Vector {
#[clap(env, long, default_value = "30s", value_parser = parse_duration)]
pub log_vector_timeout: Duration,

/// Vector HTTP request retry interval
/// With each retry it will be linearly increased until it reaches 5x
/// E.g. for 2s the retry intervals will be 2s/4s/6s/8s/10s/10s/10s...
#[clap(env, long, default_value = "2s", value_parser = parse_duration)]
pub log_vector_retry_interval: Duration,

/// ZSTD compression level to use when sending data
#[clap(env, long, default_value = "3")]
pub log_vector_zstd_level: usize,
Expand Down
Loading

0 comments on commit 7df0c6b

Please sign in to comment.