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

Support global denylist and per-tenant allowlist of tags for search data #960

Merged
merged 13 commits into from
Sep 23, 2021

Conversation

annanay25
Copy link
Contributor

@annanay25 annanay25 commented Sep 15, 2021

Signed-off-by: Annanay annanayagarwal@gmail.com

What this PR does:

  • Support global denylist of tags to be dropped from search data. The denylist will be applied at the distributors and only filtered tags will be added to the flatbuffers.
  • Support per-tenant allowlist of tags that will override the global denylist.

Which issue(s) this PR fixes:
Fixes part of #932

Checklist

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

Signed-off-by: Annanay <annanayagarwal@gmail.com>
@annanay25 annanay25 changed the title Add global denylist of tags to be added to search data Support global denylist of tags to be dropped from search data Sep 15, 2021
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
@annanay25 annanay25 mentioned this pull request Sep 15, 2021
12 tasks
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.

LGTM

modules/distributor/distributor.go Outdated Show resolved Hide resolved
modules/distributor/tag_manager.go Outdated Show resolved Hide resolved
modules/distributor/tag_manager.go Outdated Show resolved Hide resolved
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
@annanay25 annanay25 changed the title Support global denylist of tags to be dropped from search data Support global denylist and per-tenant allowlist of tags for search data Sep 21, 2021
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

a couple of small things to check, but overall looks great!

modules/overrides/overrides.go Show resolved Hide resolved
modules/overrides/list_to_map.go Outdated Show resolved Hide resolved
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
Signed-off-by: Annanay <annanayagarwal@gmail.com>
@annanay25
Copy link
Contributor Author

annanay25 commented Sep 23, 2021

Thanks @joe-elliott, addressed both.

Feeling really good about the state of this. Tested with the docker-compose example as well. Will merge on green CI.

Signed-off-by: Annanay <annanayagarwal@gmail.com>
@annanay25 annanay25 merged commit 1a46c46 into grafana:main Sep 23, 2021
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.

3 participants