Merge pull request #59 from fluxcd/metrics-port

Change metrics port to 8080
This commit is contained in:
Stefan Prodan 2020-07-13 13:16:52 +03:00 committed by GitHub
commit 57806b9fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ spec:
app: kustomize-controller
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8282"
prometheus.io/port: "8080"
spec:
terminationGracePeriodSeconds: 10
containers:
@ -26,7 +26,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- containerPort: 8282
- containerPort: 8080
name: http-prom
env:
- name: RUNTIME_NAMESPACE

View File

@ -61,7 +61,7 @@ func main() {
logJSON bool
)
flag.StringVar(&metricsAddr, "metrics-addr", ":8282", "The address the metric endpoint binds to.")
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&eventsAddr, "events-addr", "", "The address of the events receiver.")
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
"Enable leader election for controller manager. "+