Register new Tenants FQDN on Grafana allowedHosts
This guide shows how to register newly added Tenants FQDN to Grafana allowedHosts, so that Grafana will be able to make requests to those FQDNs.
Once a new tenant is created, we need to register the tenant's FQDN in the list of allowedHosts.
Open Grafana on a separate browser,
https://<CX_TENANT_URL>/grafanato access the grafana configuration portal.Login using the admin user and password.
Go to
Connections>DataSources>infinity_cim_json_api>Security>Allowed Hosts>Click on Add button>Click on Save and TestEdit
infinity_cim_json_apidatasource.
We also need to add it on the datasource file, so that in case application goes down, it will be able to add the registered hosts during restart.
Edit
post-deployment/config/grafana/supervisor-dashboards/datasource.ymlGo under
infinity_cim_json_api>jsonData>allowedHostsand add all the tenants fqdn. egYAML############################################ INFINITY API PLUGIN CONFIGURATION ########################################## - name: infinity_cim_json_api jsonData: allowedHosts: - "*" - "https://example1.com" - "https://example2.com" - "https://example3.com" - "https://example4.com"Re-apply data-source manifest.
- CODE
# Delete secret kubectl -n expertflow delete secret ef-grafana-datasource-secret # Re-apply secret kubectl -n expertflow create secret generic ef-grafana-datasource-secret --from-file=post-deployment/config/grafana/supervisor-dashboards/datasource.yml