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

Convert to using prometheus appendable #2431

Merged
merged 13 commits into from
Nov 1, 2022
Merged

Convert to using prometheus appendable #2431

merged 13 commits into from
Nov 1, 2022

Conversation

mattdurham
Copy link
Collaborator

@mattdurham mattdurham commented Oct 26, 2022

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

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@mattdurham mattdurham marked this pull request as ready for review October 26, 2022 15:00
@mattdurham mattdurham changed the title WIP: Convert to using prometheus appendable Convert to using prometheus appendable Oct 26, 2022
@ptodev ptodev removed their request for review October 26, 2022 16:10
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

Nice!

component/prometheus/fanout.go Outdated Show resolved Hide resolved
component/prometheus/fanout.go Outdated Show resolved Hide resolved
component/prometheus/fanout.go Outdated Show resolved Hide resolved
component/prometheus/globalrefmap.go Show resolved Hide resolved
component/prometheus/relabel/relabel_test.go Show resolved Hide resolved
component/prometheus/remotewrite/remote_write.go Outdated Show resolved Hide resolved
* separate fanout and intercept patterns

* testing flow

* Add middleware style next to interceptor.
Copy link
Member

@rfratto rfratto left a 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).

component/prometheus/fanout.go Outdated Show resolved Hide resolved
@mattdurham mattdurham merged commit 0513789 into main Nov 1, 2022
@mattdurham mattdurham deleted the flow_appendable branch November 1, 2022 15:23
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Mar 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flow: use Prometheus directly instead of abstraction
3 participants