Giter VIP home page Giter VIP logo

Comments (7)

pb82 avatar pb82 commented on May 18, 2024

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.

from grafana-operator.

ibotty avatar ibotty commented on May 18, 2024

from grafana-operator.

pb82 avatar pb82 commented on May 18, 2024

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.

from grafana-operator.

NissesSenap avatar NissesSenap commented on May 18, 2024

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

from grafana-operator.

ibotty avatar ibotty commented on May 18, 2024

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.

from grafana-operator.

NissesSenap avatar NissesSenap commented on May 18, 2024

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.

from grafana-operator.

HubertStefanski avatar HubertStefanski commented on May 18, 2024

@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!

from grafana-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.