There are more ways how to expose your Grafana to other world under subdomain name of your main domain. I used this one:

  • Add in cloudflare record of type A with subdomain you choose pointing to the Grafana IP – TTL automatic, status “DNS only”
  • redirect port 80 to 3000 on instance / server with Grafana:
    sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
  • If your Grafana is on cloud check that HTTP traffic is allowed for your instance

 

Sources: