Skip to content

Commit

Permalink
CosmosDB Benchmark Metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Lipin committed Jun 22, 2023
1 parent b16ae6a commit 019fce2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/BenchmarkConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ public class BenchmarkConfig
[Option(Required = false, HelpText = "Logging context name. The default value is \"CosmosDBBenchmarkLoggingContext\"")]
public string LoggingContextIdentifier { get; set; } = "CosmosDBBenchmarkLoggingContext";

[Option(Required = false, HelpText = "Metrics reporting interval in seconds")]
public int MetricsReportingIntervalInSec { get; set; } = 5;

[Option(Required = false, HelpText = "Application Insights instrumentation key")]
public string AppInsightsInstrumentationKey { get; set; }

[Option(Required = false, HelpText = "The reservoir sample size.")]
public int ReservoirSampleSize { get; set; } = 1028;

[Option(Required = false, HelpText = "Logging context name. The default value is \"CosmosDBBenchmarkLoggingContext\"")]
public string LoggingContextIdentifier { get; set; } = "CosmosDBBenchmarkLoggingContext";

internal int GetTaskCount(int containerThroughput)
{
int taskCount = this.DegreeOfParallelism;
Expand Down

0 comments on commit 019fce2

Please sign in to comment.