After a CA and leaf certificate rotation, the Grafana UI fails to show any metrics.
The errors in the Grafana UI show something similar to the following:
Status: 500. Message: Get "https://q-s3.tsdb.example.p-healthwatch2-dbeacf25470a4c87a82e.bosh:4450/api/v1/query?query=increase%28tas_sli_failures_total%5B5m%5D%29&time=1759686463.935": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "Pivotal")Tanzu Platform Cloud Foundry
Healthwatch
It appears that the "prometheus" row in the data_source table is not getting updated with the new certificate data after a certificate rotation is completed.
The following steps can be ran to resolve the issue. Feel free to reach out to Tanzu Support, via a support request, if you are not comfortable running these steps (as these include a DB delete command).
bosh -d p-healthwatch2-xxxxxxxxxxxx restart grafana/xxxxxxxxxx --no-converge Afterwards, the Grafana UI should be displaying the metrics again without any errors.