Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`<relabel_config>` -> <relabel_action> description not comlete for `drop` and `keep`

Open Beginner friendly
#2,232 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Domain
documentation

Research direction

Start with the relabel_config section at the linked Prometheus configuration documentation page and compare the keep and drop descriptions with metric_relabel_configs. Update the wording so it covers both targets and metrics, then verify that the descriptions no longer imply they apply only to targets.

Written by the indexing model from the issue text.

Description

From https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config:

keep: Drop targets for which regex does not match the concatenated source_labels.
drop: Drop targets for which regex matches the concatenated source_labels.

This incorrectly says that drop/keep is only to drop targets, when it is also to drop/keep metrics when used with <metric_relabel_configs>

This is slightly related to https://github.com/prometheus/docs/issues/341, but https://github.com/prometheus/docs/issues/341 says that relabel_config is accurate which is not true.

Dominant language
TypeScript
Stars
718
Forks
1.2k
Avg merge
4d 16h
Merged PRs (30d)
19

Getting set up

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.

More from prometheus/docs

All issues in prometheus/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.