Giter Club home page Giter Club logo

Comments (3)

algo7 avatar algo7 commented on June 24, 2024 1

Mimir Ruler should be able to support multi-tenant request just like it does for the metrics.

How exactly should Mimir Ruler endpoint for listing rules work when it finds multiple tenants in X-Scope-OrgID header? List rule groups from all tenants? Then we run into possibility of conflicting namespaces. Shall endpoint create logical hiearchy with tenant in the top-level? Then view would be different between single-tenant and multi-tenant and all clients would need to understand both.

What about endpoint for setting rule group, or deleting namespace? Should the modification be applied to the first tenant? All tenants?

These questions need to be answered before we can add support for multi tenancy into Ruler API.

I see. Then maybe it will make sense to include the challenges you described above in the documentation so it's clear to everyone.

It's mentioned in the official documentation

Grafana Mimir is a multi-tenant system where tenants can query metrics and alerts that include their tenant ID. The query takes the tenant ID from the X-Scope-OrgID parameter that exists in the HTTP header of each request, for example X-Scope-OrgID: . You can federate queries across multiple tenants by using true in -tenant-federation.enabled=true. When you specify tenant IDs, separate them with a pipe (|) character in the X-Scope-OrgID header, as in the example X-Scope-OrgID: tenant-1|tenant-2|tenant-3.

Source: https://grafana.com/docs/mimir/latest/manage/secure/authentication-and-authorization/

It's easy for people to assume that all components in the Grafana Mimir system support multi-tenancy until they realize that's not the case during implémentation.

Once it's made cleared, maybe the community will be able to offer some creative solutions.

I start the issue with "it's frustrating..." because it's part of the template provided. While it's actually frustrating, I do appreciate the work being done at Grafana Lab and there's no offense.

Hopefully there will be solutions or easier alternatives to this problem soon.

from mimir.

pstibrany avatar pstibrany commented on June 24, 2024

Mimir Ruler should be able to support multi-tenant request just like it does for the metrics.

How exactly should Mimir Ruler endpoint for listing rules work when it finds multiple tenants in X-Scope-OrgID header? List rule groups from all tenants? Then we run into possibility of conflicting namespaces. Shall endpoint create logical hiearchy with tenant in the top-level? Then view would be different between single-tenant and multi-tenant and all clients would need to understand both.

What about endpoint for setting rule group, or deleting namespace? Should the modification be applied to the first tenant? All tenants?

These questions need to be answered before we can add support for multi tenancy into Ruler API.

from mimir.

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.