prometheus / prometheus/docs

Prometheus remote write write_relabel_configs not working

Open
#2,193 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
717
Forks
1.2k
Avg merge
3d 15h
Merged PRs (30d)
19

Description

I want to only remote write metrices only with some specific names. The following is my remoteWrite configuration -
` remoteWrite:

  • queue_config:
    capacity: 20000
    max_samples_per_send: 10000
    max_shards: 30
    tlsConfig:
    insecureSkipVerify: true
    url: http://vminsert./insert/0/prometheus
    write_relabel_configs:
    • action: keep
      regex: "(.*)vm_(.*)|kube_pod_status_phase|kubelet_volume_stats_capacity_bytes"
      source_labels: [name]
      `

I want to write only the metrices mentioned in regex. But it is remote writing each and every metrices to Victoria Metrices. Where am I going wrong ?
image

#prometheus #remoteWrite

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 with the remoteWrite and write_relabel_configs example in the issue, then compare its regex and source_labels with the Prometheus remote-write documentation. Done means determining whether the documented configuration or the reported behavior needs correction; the issue names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
prometheus
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.