Expose /pressure also in Prometheus Metrics

This issue has been tracked since 2022-11-01.

Is your feature request related to a problem? Please describe.
Currently browserless internal metrics are only exposed on /pressure. It would be great to include them in /prometheus

Describe the solution you'd like
expose browserless metrics like:

// http://localhost:3400/pressure
  "pressure": {
    "date": 1665761298012,
    "reason": "",
    "message": "",
    "isAvailable": true,
    "queued": 0,
    "recentlyRejected": 0,
    "running": 1,
    "maxConcurrent": 10,
    "maxQueued": 10,
    "cpu": 5,
    "memory": 63

goal would be to get metrics like:

  • browserless_queued
  • browserless_recently_rejected
  • browserless_running
  • browserless_max_concurrent
  • browserless_max_queued
  • browserless_cpu
  • browserless_memory

#381 was a nice start but only exposed the node metrics.

More Details About Repo
Owner Name browserless
Repo Name chrome
Full Name browserless/chrome
Language TypeScript
Created Date 2017-11-17
Updated Date 2023-03-22
Star Count 5309
Watcher Count 47
Fork Count 516
Issue Count 29


Issue Title Created Date Updated Date