prometheus / prometheus/client_js

Some metrics missing on non-Linux

Open
#362 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
3.5k
Forks
429
Avg merge
3d 3h
Merged PRs (30d)
22

Description

Recently discovered that the general metrics returned from prom-client when running on Ubuntu include (among many others):

process_virtual_memory_bytes
process_heap_bytes
process_open_fds
process_max_fds

and when run on macOS these 4 are missing. Wondering why this was and if this is known and expected?

I discovered this as I had created a test with a sort-of-snapshot of the results and that test fails on Macs but continues to work on Linux systems including CentOS and Ubuntu.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reproducing the general-metrics comparison on macOS and Linux, then inspect the metric collection and existing tests to determine whether the four missing metrics are expected; done means the cross-platform behavior is established and the issue has a clear documented or tested outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.