Giter Club home page Giter Club logo

Comments (6)

shindebshekhar avatar shindebshekhar commented on May 30, 2024 1

Thanks, that answers my question!!

from mimir.

pstibrany avatar pstibrany commented on May 30, 2024
  1. Can we use different s3 buckets for different tenants? Is this feature available only available in enterprise edition?

Hello, neither Mimir or Grafana Enterprise Metrics have such feature currently.

  1. If not, how to can we set different retention period for different tenant's data. We need to have only one mimir instance but the tenants can be from non-prod/prod environment. For prod we need to set different retention period and for non-prod different. Is it possible?

Yes, this is possible. You can set block retention per tenant by using compactor_blocks_retention_period per-tenant override.

You can find more details here: https://grafana.com/docs/mimir/latest/configure/configure-metrics-storage-retention/

from mimir.

shindebshekhar avatar shindebshekhar commented on May 30, 2024

Thanks for your immediate response.

Referring to https://grafana.com/docs/mimir/latest/configure/configure-metrics-storage-retention/
So tenant name is same that we specify in headers (X-Scope-OrgID) under remoteWrite, correct?

remoteWrite:
  headers:
    X-Scope-OrgID: <<tenantname>>




from mimir.

pstibrany avatar pstibrany commented on May 30, 2024

Thanks for your immediate response.

Referring to https://grafana.com/docs/mimir/latest/configure/configure-metrics-storage-retention/ So tenant name is same that we specify in headers (X-Scope-OrgID) under remoteWrite, correct?

Yes, that is correct.

Make sure to keep multitenancy in Mimir enabled (which is the default value, but can be disabled by setting -auth.multitenancy-enabled CLI option to false), otherwise this X-Scope-OrgID header is ignored and Mimir will use anonymous tenant instead. (https://grafana.com/docs/mimir/latest/manage/secure/authentication-and-authorization/)

Once you start writing to the Mimir and Mimir starts uploading blocks to the bucket, tenant name is also used as top-level prefix inside the bucket.

from mimir.

shindebshekhar avatar shindebshekhar commented on May 30, 2024

Yes, Multitenancy is enabled in our environment. I will set the retention per tenant and test it out. Many Thanks!!

In line to similar topic if we want to add two headers while adding datastource in Grafana we need to enable tenant_federation: correct?

from mimir.

pstibrany avatar pstibrany commented on May 30, 2024

In line to similar topic if we want to add two headers while adding datastource in Grafana we need to enable tenant_federation: correct?

Do you want to query both tenants? In that case yes, you will need to enable tenant federation, and then you need to specify both tenants in one X-Scope-OrgID header, and separate them with | (pipe) character. For example X-Scope-OrgID: tenant-1|tenant-2.

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.