prometheus / prometheus/graphite_exporter

How to find the metrics that are NOT matched by the rules

Open
#239 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Go
Stars
405
Forks
113
Avg merge
9d 5h
Merged PRs (30d)
5

Description

For graphite exporter mappings i see there's a special action: "drop" for a catch-all rule that can discard the incoming that dont match.

---

- match: "."
  match_type: regex
  action: drop
  name: "delete"

I wonder if there's a way to have a catch-all rule that saves the received metric to a file or to the stdout, so i can add track/add the unmatched metrics? I checked the statsd_exporter github and was unable to find all the possible actions there, maybe you know?

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

No source file or test is named in the issue. Start by locating the graphite exporter mapping and action handling for the shown catch-all drop rule, then determine whether unmatched metrics can be emitted to a file or stdout; done means the supported behavior and configuration are documented and covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.