Report
3 ports are exposed by the flottbot dockerfile:
EXPOSE 8080 3000 4000
None of them are explicitly mentioned in the documentation (e.g. port 8080 is used for X). #56 mentions that these are for prometheus, slack events, and slack interactions api receiver, but doesn't mention which port is intended for which purpose.
What did you do?
Read docs, read the Dockerfile, read the example.
The config-example/bot.yml
says:
# true: enables prometheus metrics on localhost port 8080
prommetric.go
says:
go http.ListenAndServe(":8080", promRouter)
which indicates that it listens on INADDR_ANY.
helper.go
listens on :3000
and remote.go
listens on :4000
. Is there any reason these aren't config options, and/or aren't documented?
What did you expect to happen?
Ports named and documented in configurations, with the defaults as defaults.
What happened instead?
No documentation.
Your Environment
Please complete the following information):
- Flottbot version: github HEAD
- OS: N/A
- OS version: N/A
- Bot YAML: N/A
- Rule YAML: N/A
I'm happy to work up a PR if what I'm asking about seems reasonable.