diff --git a/.gitignore b/.gitignore index 54a98fed0465..a9b9cd4f37e5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ data-agent /cmd/benchmark/data/ /cmd/benchmark/main /cmd/benchmark/grafana-agent-flow +/cmd/benchmark/benchmark /cmd/agent/agent /cmd/agentctl/agentctl /cmd/agent-operator/agent-operator diff --git a/cmd/benchmark/configs/logsgen.river b/cmd/benchmark/configs/logsgen.river index b0fbfe11af85..422949577c0a 100644 --- a/cmd/benchmark/configs/logsgen.river +++ b/cmd/benchmark/configs/logsgen.river @@ -2,9 +2,9 @@ loki.test.logs "logs" { number_of_files = 100 file_churn_percent = .25 file_refresh = "1m" + write_cadence = "1s" writes_per_cadence = 100 - labels = { - "test" = "me", + "instance" = "localhost", } } diff --git a/cmd/benchmark/metrics.go b/cmd/benchmark/metrics.go index 0fbdf20d05fd..6978d8f18073 100644 --- a/cmd/benchmark/metrics.go +++ b/cmd/benchmark/metrics.go @@ -96,11 +96,11 @@ func metricsCommand() *cobra.Command { select { case <-t.C: case <-signalChannel: - for k, p := range running { - cleanupPid(p, fmt.Sprintf("./data/%s", k)) - } - } + for k, p := range running { + cleanupPid(p, fmt.Sprintf("./data/%s", k)) + } + return nil }, }