Skip to content

Commit

Permalink
Check simulated series file
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode committed Dec 18, 2024
1 parent 4d436f4 commit 8c1ab58
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions collectors/metrics/cmd/metrics-collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ import (

func main() {
opt := &Options{
From: "http://localhost:9090",
Listen: "localhost:9002",
LimitBytes: 200 * 1024,
Matchers: []string{`{__name__="up"}`},
Interval: 4*time.Minute + 30*time.Second,
EvaluateInterval: 30 * time.Second,
WorkerNum: 1,
DisableHyperShift: false,
DisableStatusReporting: false,
From: "http://localhost:9090",
Listen: "localhost:9002",
LimitBytes: 200 * 1024,
Matchers: []string{`{__name__="up"}`},
Interval: 4*time.Minute + 30*time.Second,
EvaluateInterval: 30 * time.Second,
WorkerNum: 1,
DisableHyperShift: false,
DisableStatusReporting: false,
SimulatedTimeseriesFile: "",
}
cmd := &cobra.Command{
Short: "Remote write federated metrics from prometheus",
Expand Down Expand Up @@ -722,7 +723,7 @@ func initShardedConfigs(o *Options, agent Agent) ([]*forwarder.Config, error) {
}

func runMultiWorkers(o *Options, cfg *forwarder.Config) error {
if o.WorkerNum > 1 {
if o.WorkerNum > 1 && o.SimulatedTimeseriesFile == "" {
return nil
}

Expand Down

0 comments on commit 8c1ab58

Please sign in to comment.