In an alert manager notification, the first line is the link to the Grafana dashboard which comes with a default HTTPS URL. You may want to adjust this to make it HTTP to avoid having to consistently change the URL for the dashboard from the email alert hyperlink.
For example:
View a Grafana graph of the expression that triggered this alert
^^^ Above URL is set for https://grafana-pas-systemdomain.com/explore? ^^^
View this alert in Alertmanager (Requires a BOSH SSH Tunnel)
Summary: A certificate is expiring
Description: At least one certificate (BOSH Trusted Certificate S/N: XXXXXXX) on your foundation is going to expire within 30 days.
Details:
alertname: ExpiringCertificate
instance: 10.x.x.x:9090
job: healthwatch-pas-exporter
product: BOSH Trusted Certificate S/N
prometheus_deployment: p-healthwatch2-xxxxxxxxxxx
scrape_instance_group: cert-expiration-exporter
This articles explains how to configure the URL type as HTTP.
To work around this issue, follow the steps below:
1. First validate your settings by adjusting the root URL from https to http in your Operations Manager (Ops Manager) configuration and Apply Changes.
2. Validate HTTP is being used in the Grafana initialization file:
grafana/033747ea-f3a1-4579-a141-4ef71c0c4fdb:~# grep protocol /var/vcap/jobs/grafana/config/grafana.ini protocol = http
a. SSH into each Time Series Database (TSDB) VM and go into sudo mode (sudo -i) so you can review this file:
/var/vcap/jobs/prometheus/config/alerting.rules.ym
%s/grafanaUrlPrefix: https/grafanaUrlPrefix: http/g
monit restart prometheus