Prometheus remote write write_relabel_configs not working
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]
`
- action: keep
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 ?

#prometheus #remoteWrite
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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