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:
commit
803a76cf8a
7 changed files with 28 additions and 2 deletions
|
|
@ -851,6 +851,7 @@ type TemplateConfig struct {
|
|||
PublishService *apiv1.Service
|
||||
EnableMetrics bool
|
||||
MaxmindEditionFiles []string
|
||||
MonitorMaxBatchSize int
|
||||
|
||||
PID string
|
||||
StatusPath string
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue