Skip to content

Add SSL

Video Lecture

Add SSL Bind SSL to your Grafana Nginx Proxy

 (Pay Per View)

You can use PayPal to purchase a one time viewing of this video for $1.49 USD.

Pay Per View Terms

  • One viewing session of this video will cost the equivalent of $1.49 USD in your currency.
  • After successful purchase, the video will automatically start playing.
  • You can pause, replay and go fullscreen as many times as needed in one single session for up to an hour.
  • Do not refresh the browser since it will invalidate the session.
  • If you want longer-term access to all videos, consider purchasing full access through Udemy or YouTube Memberships instead.
  • This Pay Per View option does not permit downloading this video for later viewing or sharing.
  • All videos are Copyright © 2019-2025 Sean Bradley, all rights reserved.

Description

We can add SSL to the Grafana UI to ensure all traffic is encrypted between the server and web browser.

We can use a free certificate using the Certbot service.

For Software, choose Nginx

For System, choose Linux (snap)

Then SSH onto your Grafana server.

Certbot will be installed using snapd.

On a new Ubuntu, snapd will already be installed. We can check by typing,

#
snap version

If you get an error, then you can follow the instruction at Snapcraft

If it is already installed, then we can install the classic Certbot.

snap install --classic certbot

Create a symbolic link for Certbot so that it can be executed from the command line.

#
ln -s /snap/bin/certbot /usr/bin/certbot

Start the process of installing the SSL certificate for your domain name.

#
certbot --nginx

Follow the prompts, and enter the domain name that you want to secure.

After completion, you should then be able to visit your Grafana server using your domain name only.

https://YOUR-DOMAIN-NAME

Note that after running Certbot, it has changed the settings of your Nginx configuration file you created earlier.

You can see those changes by using the cat command.

cat /etc/nginx/sites-enabled/YOUR-DOMAIN-NAME

Grafana Cloud

If you use your own Grafana Cloud deployment, then you will already have an SSL certificate bound to your domain.

While it is important to know the inner details of managing your own Grafana server, it can later be more strategic for your business to outsource the many aspects of it. Visit Grafana Cloud to start the process.

Benefits,

  • Upgraded 28-day trial to Grafana Pro (vs. the standard 14-days)
  • 3 users
  • 10k metrics
  • 50GB logs
  • 50GB traces
  • Automatic updates
  • 30 notifications for OnCall
  • 14-day retention

Sign up at Grafana Cloud