@ayufan@nick.thomas If I understand correctly, these metrics will be exported through HTTP. Given we can listen to multiple HTTP and HTTPS ports/adresses were would it be best to expose this?
@zj I would add a new -listen-prometheus option which would be handled in the same way as the existing ones.
Things are a little complicated as the process opens the ports (as they may be on port 80 or so, requiring privileges), then optionally drops privileges and chroot()s and executes itself again, passing the file descriptors along. I got to work all this out while being interviewed for the job 🕐 !
I don't think this is needed, and Ill skip it in the first implementation. Given we have no clue when and how often scraping will happen, and we're going to store the number of updates anyway, this should be fine.