prometheus / prometheus/node_exporter

Add include/exclude filter for Linux memory metrics

Open
#1,781 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement platform/Linux
Dominant language
Go
Stars
13.8k
Forks
2.7k
Avg merge
1d 23h
Merged PRs (30d)
8

Description

In order to reduce excess cardinality, it would be useful to have include and exclude filters for /proc/meminfo. Similar to how we handle netstat metrics.

Up for debate is if these should have default values, and what the default values should be.

Contributor guide

Open the contributing guide

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

Start by reading the existing netstat metrics filtering implementation and the code that reads /proc/meminfo. Determine how include and exclude filters should reduce exported memory metrics, then check how defaults should behave. Done means the filter behavior and defaults are implemented consistently with netstat and covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, linux
Domain
observability, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.