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

Merge feat-remote-write-metadata to 2.18.1-grafana #6

Merged
merged 4 commits into from
May 18, 2020

Conversation

gotjosh
Copy link

@gotjosh gotjosh commented May 15, 2020

The 2.18 version of #4

The biggest change I could see is that we now protect the remote-write client with a lock, I'll need to do a bit more testing before merging.

Similarly to the WAL watcher, its purpose is to observe the scrape manager and pull metadata. Then, send it to a remote storage.

Signed-off-by: gotjosh <josue@grafana.com>
Signed-off-by: gotjosh <josue@grafana.com>
The client is now protected by a lock. Use the function instead of the
attribute directly to ensure we take and release the lock.

Signed-off-by: gotjosh <josue@grafana.com>
@gotjosh gotjosh changed the title Feat remote write metadata Merge feat-remote-write-metadata to v2.18.1-grafana #4 May 15, 2020
@gotjosh gotjosh requested a review from rfratto May 15, 2020 18:47
return nil
}

func sendWriteRequestWithBackoff(ctx context.Context, cfg config.QueueConfig, s func() StorageClient, l log.Logger, req []byte, reportFailureFunc func()) (elapsed float64, err error) {
Copy link
Author

Choose a reason for hiding this comment

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

The conflict I had came from this function - before, it was receiving a StorageClient directly. Now, it takes a function which is client() that returns the StorageClient but with a lock.

@gotjosh gotjosh changed the title Merge feat-remote-write-metadata to v2.18.1-grafana #4 Merge feat-remote-write-metadata to 2.18.1-grafana May 15, 2020
@gotjosh gotjosh merged commit 007aa83 into release-2.18.1-grafana May 18, 2020
@gotjosh gotjosh deleted the feat-remote-write-metadata branch May 18, 2020 16:34
@gotjosh gotjosh restored the feat-remote-write-metadata branch August 20, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants