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

Improve error handling while parsing Prometheus service monitor labels #401

Merged
merged 1 commit into from
Jan 31, 2019
Merged

Improve error handling while parsing Prometheus service monitor labels #401

merged 1 commit into from
Jan 31, 2019

Conversation

astefanutti
Copy link
Member

No description provided.

for _, label := range strings.Split(labels, ",") {
kv := strings.Split(label, "=")
if len(kv) != 2 {
return nil, fmt.Errorf("Invalid label [%s] in labels [%s]", label, labels)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error strings should not start with a capital letter

@lburgazzoli lburgazzoli merged commit ec8f3b8 into apache:master Jan 31, 2019
@astefanutti astefanutti deleted the prom-06 branch January 31, 2019 16:38
@astefanutti astefanutti added the area/observability Logging, monitoring and tracing label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/observability Logging, monitoring and tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants