Among other things, this fixes two important fields on FreeBSD 13.0
Builds OK on stable/13. I don't have Prometheus instance running, can't test, but I trust your testing scenario (as I know where/how it is being used).
Only a minor nit, here are two spaces instead of one tab (probably as a result of copy&paste). One tab should be used to make portfmt -D happy.