Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 499 Bytes

4.0-Special-Items-Main-Go.md

File metadata and controls

18 lines (11 loc) · 499 Bytes

4.0 Special Items in main.go

  • Starts a metric server with custom metrics defined in localmetrics pkg

4.1 Constants

metricsPort               = "8080"
metricsPath               = "/metrics"
secretWatcherScanInterval = time.Duration(10) * time.Minute

metricsPort is the port used to start the metrics port

metricsPath it the path used as the metrics endpoint

secretWatcherScanInterval sets the interval at which the secret watcher will look for secrets that are expiring