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

__param_match[] available in relabeling #3926

Closed
skpenpen opened this Issue Mar 8, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@skpenpen
Copy link

skpenpen commented Mar 8, 2018

What did you do?

Try to use relabelling to populate the parameter "match[]" for federation

What did you expect to see?

The "__param_match[]" populate from value from consul tag "param"

What did you see instead? Under which circumstances?

failed to reload config: couldn't load configuration (--config.file=/prometheus/conf/prometheus-smhg-mutu.yml): parsing YAML file /prometheus/conf/prometheus.yml: "__param_match[]" is invalid 'target_label' for replace action

Environment

  • System information:

Linux 3.10.0-693.11.1.el7.x86_64 x86_64

  • Prometheus version:

    2.1.0

  • Prometheus configuration file:

relabel_configs:
  - source_labels: ['__meta_consul_tags']
      regex: '.*;params=([^;]*).*'
      target_label: '__param_match[]'
  • Logs:
err="couldn't load configuration (--config.file=/prometheus/conf/prometheus.yml): parsing YAML file /prometheus/conf/prometheus.yml: \"__param_match[]\" is invalid 'target_label' for replace action"
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Mar 8, 2018

This is not possible, and I don't think it's sane to offer it. Federation can have multiple params and they should be static.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.