docs: Add disable serving metrics info if port 0 by mikesmithgh · Pull Request #416 · metacontroller/metacontroller · GitHub
Skip to content

docs: Add disable serving metrics info if port 0 - #416

Merged
grzesuav merged 1 commit into
metacontroller:masterfrom
mikesmithgh:prom-metrics-port-info
Jan 9, 2022
Merged

grzesuav merged 1 commit into
metacontroller:masterfrom
mikesmithgh:prom-metrics-port-info

Conversation

@mikesmithgh

Copy link
Copy Markdown
Collaborator

I was troubleshooting a couple things and wanted to disable prometheus metrics and came across the ability to disable it by setting the port to 0. See: https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/manager/manager.go#L199

@grzesuav @AmitKumarDas I am thinking it might be better to default the value to 0 and have the user enable it if necessary. Thoughts?

Signed-off-by: Mike Smith <10135646+mjsmith1028@users.noreply.github.com>
@codecov

codecov Bot commented Jan 5, 2022

Copy link
Copy Markdown

@AmitKumarDas

Copy link
Copy Markdown
Contributor

@mjsmith1028 I have some queries w.r.t changing the default behaviour of metrics. What issues do you face with current default metrics settings. It will be nice to stick to existing defaults (to avoid changes to all end user deployments) if it is not a bug.

@mikesmithgh

Copy link
Copy Markdown
Collaborator Author

@mjsmith1028 I have some queries w.r.t changing the default behaviour of metrics. What issues do you face with current default metrics settings. It will be nice to stick to existing defaults (to avoid changes to all end user deployments) if it is not a bug.

Hi @AmitKumarDas, I don't have any issues. I was just thinking to disable it by default because some users may not have prometheus setup. But, I agree that makes sense to leave it as is to avoid a breaking change if users are on the current default port 9999 👍 thanks!

@AmitKumarDas
AmitKumarDas requested a review from grzesuav January 6, 2022 14:13
@grzesuav
grzesuav merged commit 96059e8 into metacontroller:master Jan 9, 2022
@grzesuav

grzesuav commented Jan 9, 2022

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants