Skip to content

Commit

Permalink
remove error simulation to fix uneven samples/s
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed Dec 6, 2024
1 parent 2b2a96b commit f4a7835
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package promstub

import (
"fmt"
"math/rand"
"time"

"github.com/grafana/alloy/internal/component/prometheus/scrape_task/internal/promadapter"
Expand Down Expand Up @@ -33,10 +31,5 @@ func (s *sender) Send(metrics []promadapter.Metrics) error {
}
}

// 1% failures
if rand.Intn(100) == 0 {
return fmt.Errorf("send failed: test downstream unavailable")
}

return nil
}

0 comments on commit f4a7835

Please sign in to comment.