Configurable metrics max batch size

This commit is contained in:
Bo0km4n 2020-06-20 15:58:14 +09:00
parent 84e5896299
commit 53a6b0fd3b
7 changed files with 28 additions and 2 deletions

View file

@ -836,6 +836,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

@ -617,6 +617,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,