skip to Main Content

I configured my grafana alerts to be directed to telegram,
but the url in the message is localhost:3000
I changed the domain already in grafana.ini but it didn’t work, I still get localhost:3000 in the alert message.
Are there any other configurations to be made?

3

Answers


  1. Configure the root_url option of [server] in your Grafana config file or env variable GF_SERVER_ROOT_URL to https://grafana.company.com/

    From this SO Question and answer.

    This shows to set root URL As well. I’d say this is likely a duplicate question.

    Login or Signup to reply.
  2. You will have to change root_url under grafana.ini something like:

    [server]
    root_url = https://xyz.xxx.com
    
    Login or Signup to reply.
  3. For kubernetes chart, please add those for grafana:

    grafana:
      env:
        GF_SERVER_ROOT_URL: "https://your.url/"
      notifiers:
        notifiers.yaml:
          notifiers:
          - name: telegram
            type: telegram
            uid: telegram
            is_default: true
            settings:
              bottoken: "yourbottoken"
              chatid: "-yourchatid"
    

    and use uid: "telegram" in the provisioned dashboards. Please note, you should not miss quotes, https:// or http:// part and even the end / in GF_SERVER_ROOT_URL

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search