Skip to content

Commit

Permalink
fix timing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Jan 5, 2024
1 parent 8354554 commit b2d62c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/benchmark/configs/logsgen.river
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
8 changes: 4 additions & 4 deletions cmd/benchmark/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}
Expand Down

0 comments on commit b2d62c2

Please sign in to comment.