Change the link on the alert message diagram

I want to change the address by click View your Alert rule in the alerting mail I receive.
example:
click View your Alert rule, then the URL to open is like http://localhost:3000/d/NQQwsN5Mk/jin-cheng-jian-kong?tab=alert&editPanel=6&orgId=1. I want to change to http://monitor/d/NQQwsN5Mk/jin-cheng-jian-kong?tab=alert&editPanel=6&orgId=1.
In a word, replace localhost:3000 with the monitor. What should I do?

Hey,
have a look into the Grafana config file, if your on Linux it’s most likely located in /etc/grafana/grafana.ini in there you will find the root_url parameter which you should edit so that it states your URL and the scheme.

I hope this helps.