GoogleCloudPlatform / alloydb-auth-proxy

A utility for connecting securely to your AlloyDB instances
https://cloud.google.com/alloydb/docs/auth-proxy/overview?hl=hu
Apache License 2.0
59 stars 10 forks source link

Add --help message documentation to README #709

Open FezVrasta opened 1 month ago

FezVrasta commented 1 month ago

Question

Hi, we are using gcr.io/alloydb-connectors/alloydb-auth-proxy and we are observing a huge amount of logs being generated by the container.

2024-09-30 13:35:38.160 CEST
2024/09/30 11:35:38 [.us-central1.default.default] accepted connection from 127.0.0.1:60560
2024-09-30 13:35:38.258 CEST
2024/09/30 11:35:38 [.us-central1.default.default] client closed the connection
2024-09-30 13:35:43.135 CEST
2024/09/30 11:35:43 [.us-central1.default.default] accepted connection from 127.0.0.1:60574
2024-09-30 13:35:43.281 CEST
2024/09/30 11:35:43 [.us-central1.default.default] client closed the connection
2024-09-30 13:35:48.135 CEST
2024/09/30 11:35:48 [.us-central1.default.default] accepted connection from 127.0.0.1:59438
2024-09-30 13:35:48.204 CEST
2024/09/30 11:35:48 [.us-central1.default.default] client closed the connection
2024-09-30 13:35:53.129 CEST
2024/09/30 11:35:53 [.us-central1.default.default] accepted connection from 127.0.0.1:59452
2024-09-30 13:35:53.199 CEST
2024/09/30 11:35:53 [.us-central1.default.default] client closed the connection

We reached over 1 million log entries over the past month. Is there any way to set the log level to "warn" so that these info messages are not logged to the console?

Code

No response

Additional Details

No response

enocom commented 1 month ago

You're looking for the --quiet flag which will only log error messages.

FezVrasta commented 1 month ago

Thanks, I don't think that's documented though?

enocom commented 1 month ago

If you run ./alloydb-auth-proxy --help, it does appear in the list of flags.

We could reproduce that help message here in the repository if that would help. WDYT?

FezVrasta commented 1 month ago

Yes that would be extremely helpful, having ran this project exclusively through kubernetes and its container I never had a chance to play with the CLI tool.

enocom commented 1 month ago

Sounds good. I'll make this an issue for doing that. Thanks again for the report.