Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul sds multi tags relabel with regex not works #569

Closed
rongfengliang opened this issue Jun 18, 2020 · 3 comments
Closed

Consul sds multi tags relabel with regex not works #569

rongfengliang opened this issue Jun 18, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@rongfengliang
Copy link

Describe the bug
consul sds multi tags relabel with regex not works

To Reproduce
demo:
https://github.com/rongfengliang/VictoriaMetrics-consul-sdc
consul service:
curl -X PUT -d '{"id": "prometheus-app","name": "prometheus-app","address": "prometheus","port": 9090,"tags": ["appname:demo","appversion:v1"],"checks": [{"http": "http://prometheus:9090/metrics", "interval": "5s"}]}' http://127.0.0.1:8500/v1/agent/service/register

Screenshots

WX20200618-213538
WX20200618-213811

Version

docker run victoriametrics/vmagent  --version 
vmagent-20200601-102939-tags-v1.36.3-cluster-0-g37aa4fe28
@valyala valyala added the bug Something isn't working label Jun 18, 2020
valyala added a commit that referenced this issue Jun 18, 2020
valyala added a commit that referenced this issue Jun 18, 2020
@valyala
Copy link
Collaborator

valyala commented Jun 18, 2020

@rongfengliang , thanks for the details bug report! The issue must be fixed in the commit 5820c0f . Could you build vmagent from this commit according to these docs and verify whether the issue is fixed there?

@valyala
Copy link
Collaborator

valyala commented Jun 19, 2020

vmagent and single-node VictoriaMetrics supports regex capture groups in target_label starting from v1.37.1.

@rongfengliang
Copy link
Author

@valyala thanks, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants