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

Make separator in RelabelConfig configurable #149

Closed
martin-helmich opened this issue Oct 1, 2020 · 0 comments · Fixed by #151
Closed

Make separator in RelabelConfig configurable #149

martin-helmich opened this issue Oct 1, 2020 · 0 comments · Fixed by #151

Comments

@martin-helmich
Copy link
Owner

Hi! @martin-helmich After I checked the source code, I found there is only the default separator as " ", I think it would be more configurable if we could choose whatever separator we need.

// RelabelConfig is a struct describing a single re-labeling configuration for taking
// over label values from an access log line into a Prometheus metric
type RelabelConfig struct {
	TargetLabel string              `hcl:",key" yaml:"target_label"`
	SourceValue string              `hcl:"from" yaml:"from"`
	Whitelist   []string            `hcl:"whitelist"`
	Matches     []RelabelValueMatch `hcl:"match"`
	Split       int                 `hcl:"split"`

	WhitelistExists bool
	WhitelistMap    map[string]interface{}
}

Originally posted by @runzhliu in #132 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant