Skip to content
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

Prometheus metrics hardcoded to start at port 8080 #392

Open
mmonaco opened this issue Nov 21, 2024 · 6 comments
Open

Prometheus metrics hardcoded to start at port 8080 #392

mmonaco opened this issue Nov 21, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@mmonaco
Copy link

mmonaco commented Nov 21, 2024

The metrics added in #310 listen separately at each mount, with a starting port of 8080. We should be able to customize the start port, but I think it would need to come from the sidecar annotation (gke-gcsfuse/prometheus-start-port: "9090" for example).

With this, prometheus-port doesn't need to be a disallowed flag. Instead it would skip incrementing from the start port.

(Are there options to disable the metrics if users don't want them at all?)

@hime
Copy link
Collaborator

hime commented Nov 21, 2024

Hi @mmonaco, to disable metrics, could you add the following volumeAttribute to your spec? See details here

volumeAttributes:
 ...
 disableMetrics: "true"

@mmonaco
Copy link
Author

mmonaco commented Nov 21, 2024

Sure, that's a workaround, but taking 8080 by default is quite abrasive.

@jcxplorer
Copy link

Just want to chime in and say that this change would have caused a production outage for us, which we fortunately caught in one of our staging clusters. We had one deployment with this plugin enabled that had a container already using port 8080, which started failing after a routine GKE upgrade.

Given the potential impact of this change, should metrics collection be opt-in instead?

@sirohia
Copy link

sirohia commented Nov 26, 2024

I agree. The metrics collection port should be customizable. Hard coding to 8080 is very strict.

@hime
Copy link
Collaborator

hime commented Nov 26, 2024

Thank you all for your feedback. We have recently disabled metrics exporting by default in #375 to prevent these types of frictions when using the driver. Regarding the port, I agree that setting this port number as default is rather strict. Marking this issue as an enhancement to eventually increase flexibility with users that would like to use metrics exporting.

@hime hime added the enhancement New feature or request label Nov 26, 2024
@avkudryashov
Copy link

We have recently disabled metrics exporting by default in #375

Thank you for the rapid fix. Can you also provide some information to the Kubernetes Engine release notes? Since this is a breaking change, it would be good to know which GKE version includes the fixed driver version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants