VictoriaMetrics / grafana-datasource

Grafana Plugin for VictoriaMetrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect link for `Run in VMUI`

chouzee opened this issue · comments

Hi. I would like to ask if it's possible to configure url in Run in VMUI button as in the screenshot? As a default it link to http://vm-select-cluster-victoria-metrics-cluster-vmselect:8481
image

Hi @chouzee!
It links to the same address as used to configure the datasource. It is assumed that if datasource is pointed to vmselect, then the same address for RunInVMUI will work as well.
Could you elaborate more on why you would need re-configuring the address?

We are using different url and it doesn't automatically redirect to the url we are using.

Hi @hagen1778
Thanks for great application 👍

Description:
The feature add link to VMUI #34
For example, if you use VMUI behind proxy, http://vmui.example.com so users are using this url for frontend
If you configure grafana datasource, and grafana and VM in the same k8s cluster, then you use k8s service name http://vm-select-cluster-victoria-metrics-cluster-vmselect:8481/0/prometheus and in grafana explorer the button Run in VMUI is doing redirect to k8s service name.
Require:

  • add option into datasource to configure the URL to redirect to another URL instead of default path URL(k8s service name)

This feature is available starting from v0.2.0. Closing the feature request as done.