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

Extend /flush to support flushing a single tenant #2260

Merged
merged 4 commits into from
Apr 17, 2023

Conversation

kvrhdn
Copy link
Member

@kvrhdn kvrhdn commented Mar 27, 2023

What this PR does:
/flush will flush data for all the tenants, this PR extends the endpoint to also support /flush?instance=.... Flushing the data of single tenant can be useful in case you need to work on data of that single tenant.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@kvrhdn kvrhdn changed the title Extend /flush to flush a single tenant Extend /flush to support flushing a single tenant Mar 27, 2023
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Like the change! I think it should use the more common tenant, instead of instance.

@kvrhdn
Copy link
Member Author

kvrhdn commented Mar 27, 2023

Like the change! I think it should use the more common tenant, instead of instance.

Good point! I used instance because that's what the code uses.

Copy link
Contributor

@knylander-grafana knylander-grafana left a comment

Choose a reason for hiding this comment

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

Thank you for adding doc. Update looks good for docs.

@kvrhdn kvrhdn requested a review from mapno March 29, 2023 14:23
@kvrhdn
Copy link
Member Author

kvrhdn commented Apr 17, 2023

Oops, forgot about this one 🙃

@kvrhdn kvrhdn enabled auto-merge (squash) April 17, 2023 09:29
@kvrhdn kvrhdn merged commit bbd9789 into grafana:main Apr 17, 2023
@knylander-grafana
Copy link
Contributor

@kvrhdn Do we want to backport the docs for this change to the Tempo 2.1 release? Your doc updates don't appear to be in the 2.1 docs.

@kvrhdn
Copy link
Member Author

kvrhdn commented Apr 28, 2023

If it's not too much work, backporting this would be good. Not super critical imo, this addition to the endpoint has a very narrow use-case, so I doubt a lot of people if any will use this outside of us.

@kvrhdn kvrhdn deleted the kvrhdn/flush-instance branch July 24, 2024 17:15
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.

4 participants