-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hello, I was wondering about the decision to include PORT
as the default here. My understanding might be wrong but if I have a webserver like Unicorn or Puma I probably have 'PORT' defined in my environment already. When starting the metrics server from my Unicorn process (for example) the metrics server would fail to start due to port collision with the already running unicorn. So I pretty much have to define 'PROMETHEUS_EXPORTER_PORT=9394' even if I'm okay with the default port number.
I'm happy to write up a PR for this change but thought I'd ask about the usage or thoughts behind this line of code first.
Thanks much! Really appreciate this project and your work!
default_port = ENV.fetch('PORT', 9394) |
Metadata
Metadata
Assignees
Labels
No labels