vmagent: fix consul target address relabel #516

Merged
benvin merged 1 commits from benvin/vmagent-consul-address into main 2026-10-03 22:51:46 +10:00
Member

The consul job joins node and port with ":" but then sets replacement: "${1}:${2}" with the default (.*) regex, so __address__ becomes node:port:. vmagent rejects every consul target as an invalid port, including node_exporter.

  • drop the replacement so the default $1 yields node:port
The consul job joins node and port with ":" but then sets `replacement: "${1}:${2}"` with the default `(.*)` regex, so `__address__` becomes `node:port:`. vmagent rejects every consul target as an invalid port, including node_exporter. - drop the replacement so the default `$1` yields `node:port`
unkin-agent added 1 commit 2026-10-03 22:49:15 +10:00
vmagent: fix consul target address relabel
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
6a71888367
Author
Member

No findings.

No findings.
benvin merged commit cc0dd24991 into main 2026-10-03 22:51:46 +10:00
benvin deleted branch benvin/vmagent-consul-address 2026-10-03 22:51:47 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#516