-
Notifications
You must be signed in to change notification settings - Fork 85
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
Option to enable che-server metrics endpoint #117
Conversation
|
This pr is related to the discussion in eclipse-che/che#15136. Please do not merge until we have some agreement. |
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com> change cheMetrics to metrics.enable, remove metrics port, move che service creation to deploy package Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
# Conflicts: # pkg/deploy/che_configmap.go
This reverts commit 4a588a5.
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.
LGTM apart from a minor nitpick in the tests.
pkg/deploy/che_service_test.go
Outdated
t.Error("expected 2 ports") | ||
} | ||
checkPort(ports[0], "http", 8080, t) | ||
checkPort(ports[1], "metrics", 8087, t) |
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.
DefaultCheMetricsPort
instead of 8087
?
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.
yes, I've also changed type from string to int32 to avoid conversions.
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Michal Vala <mvala@redhat.com>
In eclipse-che/che#15046 and it's subtask eclipse-che/che#15137, we're going to implement way to deploy monitoring stack with che-operator. This PR is adding first step, to be able to enable metrics endpoint on server with che CR.
fixes eclipse-che/che#15210