Skip to content

vmui: Enable customizing Query & Overview default parameters #1806

Description

@jinnatar

Is your feature request related to a problem? Please describe

If I pull up VictoriaLogs for example on a mobile phone browser to troubleshoot an issue on the road, the experience I get is completely driven by the defaults set for vmui. There seem to be no server side settings or even UI side browser-stored settings that would allow defining what that default experience should be.

Ergo, given no bookmark to fall back on, the defaults I get are painful:

  • I will get deposited at / and need to manually select the vmui link for querying. (This I can work around with a loadbalancer redirect rule to just forward / to /select/vmui)
  • In Query view, the current default is to group by none. I enjoyed the previous default of grouping by _stream but since that was changed in vmui: make hit chart non-grouped by default #1086, I now get no useful grouping by default. So I set grouping to _stream manually.
  • I realize I actually need Overview instead and switch there. Grouping is not preserved and I yet again get hit in the face with the defaults that I cannot change.

For Query & Overview defaults I cannot even override them at the loadbalancer since they are passed as url # fragments and thus not given to the lb.

Describe the solution you'd like

A mechanism to define defaults for at least some of the subjective UI choices so that I can give a good default experience to any user and browser session that hits vmui. This could for example be in the form of cli arguments or environment variables.

Important at least for me would be:

  1. If the site root should be redirected to vmui or stay as the "useful endpoints" default list
  2. Group by, grouping count & stacking
  3. Log line limit

Describe alternatives you've considered

  • Overriding default entrypoints to vmui only works for a single redirect from the top level to one of Query or Overview, but applicable url parameters are not carried over to the other which means the "configured" defaults are lost on navigation between the two.
  • An easier implementation could be using the browser storage side config UI to set defaults, but this relies on browser state surviving and requires every separate session to set preferred defaults.
  • Persisting parameters in browser storage automatically real time as changed by the user could provide for a decent user experience, or a very confusing one when different sessions on different devices diverge.

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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