Merge pull request #5749 from Bo0km4n/feat-configurable-max-batch-size

[Fix/metrics] Be configurable max batch size of metrics
This commit is contained in:
Kubernetes Prow Robot 2020-06-22 22:07:40 -07:00 committed by GitHub
commit 803a76cf8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 2 deletions

View file

@ -851,6 +851,7 @@ type TemplateConfig struct {
PublishService *apiv1.Service
EnableMetrics bool
MaxmindEditionFiles []string
MonitorMaxBatchSize int
PID string
StatusPath string

View file

@ -101,6 +101,8 @@ type Configuration struct {
GlobalExternalAuth *ngx_config.GlobalExternalAuth
MaxmindEditionFiles []string
MonitorMaxBatchSize int
}
// GetPublishService returns the Service used to set the load-balancer status of Ingresses.

View file

@ -610,6 +610,7 @@ func (n NGINXController) generateTemplate(cfg ngx_config.Configuration, ingressC
EnableMetrics: n.cfg.EnableMetrics,
MaxmindEditionFiles: n.cfg.MaxmindEditionFiles,
HealthzURI: nginx.HealthPath,
MonitorMaxBatchSize: n.cfg.MonitorMaxBatchSize,
PID: nginx.PID,
StatusPath: nginx.StatusPath,
StatusPort: nginx.StatusPort,