This topic describes how to configure a DNS entry for the Grafana instance in your Healthwatch™ for VMware Tanzu® (Healthwatch) installation.
Configuring a DNS entry for the Grafana instance allows users to access the Grafana UI more easily from outside your BOSH network, including from links to the Grafana UI in alerts from Alertmanager.
On an Ops Manager foundation that has VMware Tanzu Application Service for VMs (TAS for VMs) installed, Healthwatch can automatically configure a DNS record for the Grafana VM with the Gorouter in TAS for VMs. For more information, see (Optional) Configure Grafana in Configuring Healthwatch.
On an Ops Manager foundation that does not have TAS for VMs installed, you must manually configure a DNS entry for either the public IP address of a single Grafana VM or the load balancer in front of the Grafana instance.
VMware recommends that you create a DNS entry that points to the load balancer associated with the Grafana instance, especially if you want to make the Grafana instance highly available (HA).
To configure a DNS entry for the load balancer associated with the Grafana instance:
Ensure that you have associated a load balancer with the Grafana instance. For more information, see Configure Resources in Configuring Healthwatch.
Find the public IP address for your load balancer. You may need to assign a public or elastic IP address to your load balancer if it does not already have one. For more information, see the documentation for your IaaS:
Create an A record in your DNS server named grafana
that points to the public IP address of the load balancer that you recorded in the previous step. For more information, see the documentation for your IaaS:
Wait for your DNS server to update.
Ensure that the Grafana UI login page appears as expected by navigating to the URL that you configured in your DNS entry in a web browser. When you see the Grafana UI login page, you have successfully created a DNS entry.
To configure a DNS entry for a single Grafana VM:
In the user console for your IaaS, find the public IP address for the Grafana VM. For more information, see the documentation for your IaaS:
Record the public IP address of the Grafana VM.
Create an A record in your DNS server named grafana
that points to the public IP address of the Grafana VM that you recorded in the previous step. For more information, see the documentation for your IaaS:
Wait for your DNS server to update.
Ensure that the Grafana UI login page appears as expected by navigating to the URL that you configured in your DNS entry in a web browser. When you see the Grafana UI login page, you have successfully created a DNS entry.