camptocamp / grafana-prometheus-alertmanager-datasource

Grafana Datasource for the Prometheus Alertmanager
Apache License 2.0
287 stars 58 forks source link

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

Open yarix opened 5 years ago

yarix commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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