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

feat(loki): Add tenant for loki #308

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Conversation

JGodin-C2C
Copy link
Contributor

What type of PR is this?

/kind feature

Any specific area of the project related to this PR?

/area config

What this PR does / why we need it:

This change allows to add a "tenant header" in the configuration file at the
loki.tenant key.

Why :
Loki is able to differentiate logs coming from a specific tenant , but
it is needed to add a header in the configuration :

https://grafana.com/docs/loki/latest/operations/multi-tenancy/

This change does not bring any breaking changes.

Signed-off-by: Julien Godin [email protected]

@poiana
Copy link

poiana commented Feb 28, 2022

Welcome @JGodin-C2C! It looks like this is your first PR to falcosecurity/falcosidekick 🎉

@poiana poiana added the size/XS label Feb 28, 2022
@Issif
Copy link
Member

Issif commented Feb 28, 2022

Thanks for your PR. Can you add this new setting in the config_example.yaml and README please

@JGodin-C2C
Copy link
Contributor Author

Thanks for your PR. Can you add this new setting in the config_example.yaml and README please

README updated and example added as well.

@JGodin-C2C
Copy link
Contributor Author

Hold on, i think i found a bug. Let me make a few test before.
/wip

@JGodin-C2C
Copy link
Contributor Author

@Issif Ok, i solved the problem i had , i updated the PR and fixed a bug.

@Issif
Copy link
Member

Issif commented Feb 28, 2022

Can you also add it in env vars section please

What :
This change allows to add a "tenant header" in the configuration file at the
loki.tenant key.

Why :
Loki is able to differentiate logs comming from a specific tenant , but
it is needed to add a header in the configuration :

https://grafana.com/docs/loki/latest/operations/multi-tenancy/

This change does not bring any breaking changes.

Signed-off-by: Julien Godin <[email protected]>
@JGodin-C2C
Copy link
Contributor Author

Can you also add it in env vars section please

Sure ! here you go.
Thanks for the heads up, i totally missed the documentation part.

Copy link
Member

@Issif Issif 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.

I don't have a schedule for the release of 2.25, so I don't know when your change will be available for everybody. If you feel confident, you can still use the latest image, no breaking change have been added (we follow semver) and no major change either.

@Issif Issif added this to the 2.25.0 milestone Mar 2, 2022
@Issif
Copy link
Member

Issif commented Mar 2, 2022

/approve
/lgtm

@poiana poiana added the lgtm label Mar 2, 2022
@poiana
Copy link

poiana commented Mar 2, 2022

LGTM label has been added.

Git tree hash: 087aee85f06e0fb6a25badc9b4c667982afe9e2a

@poiana
Copy link

poiana commented Mar 2, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif, JGodin-C2C

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana added the approved label Mar 2, 2022
@Issif Issif closed this Mar 3, 2022
@Issif Issif reopened this Mar 3, 2022
@poiana poiana merged commit c9722d9 into falcosecurity:master Mar 3, 2022
@Issif Issif mentioned this pull request May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants