@bitburner-monorepo

The Bitburner repository to end all Bitburner repositories. Hopefully.

View on GitHub

@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.

An image of the exposed prometheus metrics being used in a grafana dashboard.

Build Instructions

  1. Make sure that all the usage prerequisites listed in the main repository’s README.md are fulfilled.
  2. Run the command nx run prom-metrics-expose:build.

Usage Instructions

  1. Build the project.
  2. Build bitburner-scripts.
  3. Run /bin/svc/promStatsConnector.js from that project ingame.
  4. Run the commnad nx run prom-metrics-expose:listen.
  5. Point a prometheus instance at http://your-computer:8888/metrics.

For assistance running a Prometheus instance, might I suggest using Prometheus Server Compose?