-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix metrics port expose issue for triggers eventlistener #1086
Conversation
The following is the coverage report on the affected files.
|
316bb30
to
85f91bc
Compare
The following is the coverage report on the affected files.
|
85f91bc
to
bb54b13
Compare
The following is the coverage report on the affected files.
|
bb54b13
to
ba08d13
Compare
The following is the coverage report on the affected files.
|
I tried to quickly dig down into where we were actually setting up the metrics server port to see if there was an easier way to do this but failed. One idea: Would it be possible to just set the port on the defaultObservabilityConfig() |
How about something like this:
|
ba08d13
to
1e43d56
Compare
The following is the coverage report on the affected files.
|
Used METRICS_PROMETHEUS_PORT env to set the port as part of controller.yaml |
container := getContainer(el, c, nil) | ||
container.VolumeMounts = []corev1.VolumeMount{{ | ||
Name: "config-logging", | ||
MountPath: "/etc/config-logging", | ||
}} | ||
container.Env = append(container.Env, corev1.EnvVar{ | ||
Name: "SYSTEM_NAMESPACE", | ||
ValueFrom: &corev1.EnvVarSource{ | ||
FieldRef: &corev1.ObjectFieldSelector{ | ||
FieldPath: "metadata.namespace", | ||
}}, | ||
}) | ||
container.Env = append(container.Env, corev1.EnvVar{ | ||
Name: "CONFIG_OBSERVABILITY_NAME", | ||
Value: metrics.ConfigMapName(), | ||
}) | ||
container.Env = append(container.Env, corev1.EnvVar{ | ||
Name: "METRICS_DOMAIN", | ||
Value: triggersMetricsDomain, | ||
}) | ||
|
||
container = addCertsForSecureConnection(container, c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not part of issue
But its a duplicate code so just removed
outside of the gocritic issue, this looks good to me /lgtm |
1e43d56
to
c25e2d4
Compare
The following is the coverage report on the affected files.
|
c25e2d4
to
e0aa1b9
Compare
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Changes
Metrics related changes introduced as part of #1061 and because of those changes we are facing below issues when we create Knative Service using customeResources
queue-proxy
container along with EL container and Knative itself handles metrics on9090
port for queue-proxy and because of that we face already bind errorThe PR solves above issues and exposes metrics on
9000
portFixes #1090
/cc @jmcshane @dibyom
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes