Skip to content

Tenant selection via Grafana variables #158

@Loori-R

Description

@Loori-R

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:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions