Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the datasource url as variable to be used as drill-down url #53

Open
yarix opened this issue Feb 26, 2019 · 2 comments
Open

Expose the datasource url as variable to be used as drill-down url #53

yarix opened this issue Feb 26, 2019 · 2 comments

Comments

@yarix
Copy link

yarix commented Feb 26, 2019

hi
i'd like to get the configured datasource url and use it as drill-down detail link in the alerts panel

image

the workaround, in the image, is by adding a hard-coded URL. But, obviously I can't deliver such dashboard configuration to production. and also people in production don't have rights to modify the dashboard.

thanks

@strowi
Copy link

strowi commented Mar 12, 2019

Hi,

same here. But i saw in alertmanager there is a "source" link directly to the prometheus-instance.
Wouldn't it be possible to expose/add that to the Alerts?

I think its "generatorURL" via REST: https://prometheus.io/docs/alerting/clients/

@rafal-dudek
Copy link

When requesting for alerts data, Grafana is receiving generatorURL field anyway, so it could be available as Label (column) in datasource.

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

No branches or pull requests

4 participants