Skip to content

Built-in web UI: use /select/tenant_ids HTTP endpoint for loading available tenants at tenant selector #821

@valyala

Description

@valyala

Is your feature request related to a problem? Please describe

Currently tenant selector at web UI for VictoriaLogs doesn't show available tenants - it is expected that users manually enter the needed AccountID and ProjectID for querying the given tenant.

VictoriaLogs gained support for /select/tenant_ids endpoint starting from v1.38.0 release. This endpoint returns a list of tenants for logs on the given [start ... end) time range.

Describe the solution you'd like

It would be great if web UI could fetch the list of available tenants from the /select/tenant_ids endpoint when user clicks on the tenant selector, and display auto-completion popups for the returned AccountID and ProjectID values.

Describe alternatives you've considered

No response

Additional information

Pay attention that the /select/tenant_ids endpoint expects an empty AccountID request header. If this header is non-empty, then error is returned. Web UI must handle this error gracefully by displaying a warning with this error and allowing the user entering arbitrary values inside AccountID and ProjectID fields in this case.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestweb-uiIssues related to the user interface: layout, styling, usability, or UI-specific bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions