Skip to content

Commit

Permalink
chore: fix base branch diff
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsimonn committed Dec 17, 2024
1 parent 598a080 commit b21756a
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions test/e2e/e2ethanos/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,20 +546,21 @@ type ReceiveBuilder struct {

f e2e.FutureRunnable

maxExemplars int
capnp bool
ingestion bool
limit int
tenantsLimits receive.TenantsWriteLimitsConfig
metaMonitoring string
metaMonitoringQuery string
hashringConfigs []receive.HashringConfig
relabelConfigs []*relabel.Config
replication int
image string
nativeHistograms bool
labels []string
tenantSplitLabel string
maxExemplars int
capnp bool
ingestion bool
expandedPostingsCache bool
limit int
tenantsLimits receive.TenantsWriteLimitsConfig
metaMonitoring string
metaMonitoringQuery string
hashringConfigs []receive.HashringConfig
relabelConfigs []*relabel.Config
replication int
image string
nativeHistograms bool
labels []string
tenantSplitLabel string
}

func NewReceiveBuilder(e e2e.Environment, name string) *ReceiveBuilder {
Expand Down Expand Up @@ -590,6 +591,11 @@ func (r *ReceiveBuilder) WithIngestionEnabled() *ReceiveBuilder {
return r
}

func (r *ReceiveBuilder) WithExpandedPostingsCache() *ReceiveBuilder {
r.expandedPostingsCache = true
return r
}

func (r *ReceiveBuilder) WithLabel(name, value string) *ReceiveBuilder {
r.labels = append(r.labels, fmt.Sprintf(`%s="%s"`, name, value))
return r
Expand Down Expand Up @@ -669,6 +675,11 @@ func (r *ReceiveBuilder) Init() *e2eobs.Observable {
args["--receive.local-endpoint"] = r.InternalEndpoint("grpc")
}

if r.expandedPostingsCache {
args["--tsdb.head.expanded-postings-cache-size"] = "1000"
args["--tsdb.block.expanded-postings-cache-size"] = "1000"
}

if r.limit != 0 && r.metaMonitoring != "" {
cfg := receive.RootLimitsConfig{
WriteLimits: receive.WriteLimitsConfig{
Expand Down

0 comments on commit b21756a

Please sign in to comment.