-
Notifications
You must be signed in to change notification settings - Fork 487
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
Convert to using prometheus appendable #2431
Conversation
# Conflicts: # component/prometheus/relabel/relabel.go # component/prometheus/remotewrite/remote_write.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
* separate fanout and intercept patterns * testing flow * Add middleware style next to interceptor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! My only big concern is to change the fanout to not hide errors, since there's a few important things that depend on errors being returned. For example, the target should be marked as failed if it couldn't be written to the WAL (such as having invalid or duplicate labels).
PR Description
This switches over to using the storage.appendable/appender interfaces. Exemplars and metadata aren't supported but the hooks are all there. I didn't want to overload this PR.
Which issue(s) this PR fixes
Closes #2037
Notes to the Reviewer
PR Checklist