@bitburner-monorepo/prom-metrics-expose
A means of exposing in-game Bitburner stats as Prometheus metrics. Relies on the /bin/svc/promStatsConnector
script from bitburner-scripts.
Build Instructions
- Make sure that all the usage prerequisites listed in the main repository’s README.md are fulfilled.
- Run the command
nx run prom-metrics-expose:build
.
Usage Instructions
- Build the project.
- Build bitburner-scripts.
- Run
/bin/svc/promStatsConnector.js
from that project ingame. - Run the commnad
nx run prom-metrics-expose:listen
. - Point a prometheus instance at
http://your-computer:8888/metrics
.
For assistance running a Prometheus instance, might I suggest using Prometheus Server Compose?