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 managing loki #44

Closed
ibotty opened this issue Sep 1, 2019 · 7 comments
Closed

Support managing loki #44

ibotty opened this issue Sep 1, 2019 · 7 comments
Assignees
Labels
enhancement New feature or request triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@ibotty
Copy link

ibotty commented Sep 1, 2019

It would be great to allow grafana-operator to also manage the various components of loki.

@pb82
Copy link
Collaborator

pb82 commented Sep 1, 2019

I've had a quick look and I think Loki and Promtail could run as sidecar containers in the Grafana Pod. So this should already be possible by using the containers field of the Grafana CR. If you need to mount extra configuration you could store it in a secret and mount it to a volume using the secrets field.

We use this mechanism to add an Oauth proxy in front of Grafana, see our example.

If you'd like to try out adding Loki in this way i'd be very interested in the result.

Edit: the secrets and containers fields are documented here.

@ibotty
Copy link
Author

ibotty commented Sep 1, 2019 via email

@pb82
Copy link
Collaborator

pb82 commented Sep 2, 2019

I see, so ideally Loki would run in its own Pod to scale it independently of Grafana? That makes sense. Its not currently on our Roadmap but if you want to contribute you're very welcome. If there is an extra Pod independent of the Grafana Pod then i think we also need a Loki CR similar to the Grafana CR.

The Prometheus Operator can be taken as an example: it not only manages Prometheus instances but also Alertmanager which runs in a separate Pod.

@pb82 pb82 added the enhancement New feature or request label Sep 2, 2019
@pb82 pb82 removed the hacktoberfest label Dec 6, 2019
@HVBE HVBE self-assigned this Sep 22, 2020
@david-martin david-martin added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Feb 2, 2021
@david-martin david-martin mentioned this issue Feb 2, 2021
7 tasks
@HVBE HVBE linked a pull request Mar 16, 2021 that will close this issue
7 tasks
@HVBE HVBE added this to To do in Grafana Operator (Kanban) via automation Mar 16, 2021
@NissesSenap
Copy link
Collaborator

We are currently discussing how to solve this issue. Our current plan points towards having a separate operator loki and grafana. You can find more information here: #497

A RedHat team have already started working on a loki operator, https://github.com/ViaQ/loki-operator please have a look and try it out.
Them and us would love feedback.
ping @ibotty

@ibotty
Copy link
Author

ibotty commented Aug 20, 2021

Oh, interesting. I did not see the other operator. I am fine either way. I thought it made sense to bundle them together because it's nice to have the same label config from the same source.

@NissesSenap
Copy link
Collaborator

It's rather new so it's nothing strange with that.
Fully understandable but we think it will be easier to maintain them as separate operators.
We are just in the starting pits on how to manage this in the future, but we will defiantly take a look at the loki operator API and try to get it as similar as possible to the grafana-operator. This might of course include changes to the grafana-operator as well, but the more feedback we can get the better.

@HVBE
Copy link
Collaborator

HVBE commented Aug 24, 2021

@ibotty We've decided to close this issue off, as we'll be moving to a more plug-n-play approach with the Loki and Promtail operators, please feel free to leave your feedback here based on your evaluation of the viaq Loki operator, we'd love to hear your thoughts on this as we'll be evaluating this soon ourselves as well. Thanks!

@HVBE HVBE closed this as completed Aug 24, 2021
Grafana Operator (Kanban) automation moved this from To do to Done Aug 24, 2021
@HVBE HVBE added triage/unresolved Indicates an issue that can not or will not be resolved. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage/unresolved Indicates an issue that can not or will not be resolved.
Development

Successfully merging a pull request may close this issue.

5 participants