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

*: Allow using persistence with WAL and object storage #1403

Merged
merged 1 commit into from
Jul 22, 2022
Merged

Conversation

brancz
Copy link
Member

@brancz brancz commented Jul 22, 2022

This plugs all the persistence features of FrostDB into Parca.

@brancz brancz force-pushed the persist branch 4 times, most recently from ad2a24f to 406a061 Compare July 22, 2022 10:19
Copy link
Member

@metalmatze metalmatze left a comment

Choose a reason for hiding this comment

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

It's great to see how we're building and passing the options into FrostDB! 💯

@@ -140,13 +148,38 @@ func Run(ctx context.Context, logger log.Logger, reg *prometheus.Registry, flags
return runScraper(ctx, logger, reg, tracerProvider, flags, version, cfg)
}

bucketCfg, err := yaml.Marshal(cfg.ObjectStorage.Bucket)
if err != nil {
level.Error(logger).Log("msg", "failed to marshal object storage bucket config", "err", err)
Copy link
Member

Choose a reason for hiding this comment

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

Aren't we logging the same error twice if we also return it?

parca/cmd/parca/main.go

Lines 57 to 61 in e48920c

err := parca.Run(ctx, logger, registry, flags, version)
if err != nil {
level.Error(logger).Log("msg", "Program exited with error", "err", err)
os.Exit(1)
}

I can see this was already a thing with the error handling in this function before so I'm fine with having these in. Maybe creating an issue to clean it up would be good?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed! 💯

@brancz brancz merged commit de5cc60 into main Jul 22, 2022
@brancz brancz deleted the persist branch July 22, 2022 13:13
hardys pushed a commit to hardys/parca-docs that referenced this pull request Nov 22, 2022
Since parca-dev/parca#1403 the syntax here
doesn't work, so align with the new parca.yaml from the main repo
kakkoyun pushed a commit to parca-dev/docs that referenced this pull request Nov 22, 2022
Since parca-dev/parca#1403 the syntax here
doesn't work, so align with the new parca.yaml from the main repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants