You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Add the ability to use Grafana variables for tenant selection in the VictoriaLogs Datasource. Users can create a Grafana variable to dynamically populate the AccountID and ProjectID in the header for requests, as described in the VictoriaLogs Multitenancy Documentation, making it easier to work with multiple tenants.
Key Features:
Use the endpoint introduced in PR #7484 to fetch a list of available tenants.
Populate Grafana variables with tenant options for dropdown selection.
Automatically apply the selected tenant ID to all relevant queries.
Example:
Screenshot showing how the variable setup might look when creating a variable:
The text was updated successfully, but these errors were encountered:
This feature could be a security concern for Grafana administrators.
There should be way for letting or restricting users from selecting tenants:
Ability to use or not use Tenants (let's call it allow-tenants-var) variable should be configured in Grafana datasource setting (Connection), which can be edited only by Grafana admins.
There should be way to select default tenant in datasource settings. If it was selected and allow-tenants-var is disabled, then users of the datasource shouldn't be able fetch data from tenants other than default.
[optional] if allow-tenants-var is enabled, it should support regex selector to pre-filter tenants that are allowed to use or to allow manually set list of tenants. So when variable is used in the dashboard, user can select only from curated or pre-filtered list.
Variable in dashboard should support regex matching, but it can't have Multi or All option. Unless plugin can merge results from multiple tenants.
Variable value should be passed to backend with some unique type, so it can identify that this is a Tenant selector.
Backend should always respect and re-check allow-tenants-var and list of allowed tenants to avoid cases when arbitrary tenant ID was just passed via GET param.
Changing datasource in dashboard should automatically update Tenants variable: disable it or populate with allowed tenants.
Exporting&importing dashboard with a new datasource shouldn't allow sending requests to tenants that weren't allowed in this datasource.
Unless all points can be satisfied, I'd recommend to not add this feature.
Description:
Add the ability to use Grafana variables for tenant selection in the VictoriaLogs Datasource. Users can create a Grafana variable to dynamically populate the
AccountID
andProjectID
in the header for requests, as described in the VictoriaLogs Multitenancy Documentation, making it easier to work with multiple tenants.Key Features:
Example:
Screenshot showing how the variable setup might look when creating a variable:
The text was updated successfully, but these errors were encountered: