Summary
With the upcoming removal of the system managed Grafana instance in ArcGIS Enterprise on Kubernetes, organizations that have invested significant time and effort into customizing their dashboards will want to export those resources and import to an externally-managed option.
This will walk through the process of exporting the associated dashboard JSON models, setting up the managed Metrics API (Prometheus) endpoint as a data source in both in-cluster and external scenarios, and importing the dashboard configurations.
Procedure
Export existing dashboards to files:
- Access the system managed Metrics Viewer at https://<FQDN>/<context>/grafana
- Go to Dashboards -> Manage Dashboards
- For each dashboard:
- Access the dashboard and click the gear in the top right
- Go to JSON model in the left pane
- Copy the JSON to a text editor and save to file
Configure ArcGIS Enterprise on Kubernetes metrics API as data source in external visualization tool:
- Open data source configuration page
- Apply the following properties:
- URL – https://<FQDN>/<context>/prometheus for access outside cluster or https://arcgis-rest-metrics-api.<namespace>.svc.cluster.local:8443/arcgis/prometheus for internal connections
- Authentication – Basic (may need to update credentials via Usage Statistics API, for more information see documentation)
- Username – Original administrator account created with organization
- Password – Set by administrator in Usage Statistics API
- SSL Certificate Verification – If using an external connection, a trusted certificate is already being used. If using an internal connection, you may need to disable certificate verification for the cluster service endpoint.
- Save and test configuration
Import dashboard to self-managed Grafana:
- Login to Grafana instance
- Go to Dashboards
- Click New -> Import
- Upload JSON
- Assign new title and unique identifier as necessary
- Click Load
Update data sources in dashboard JSON:
The dashboard will use the default data source for the instance unless otherwise specified, each panel may need to be updated to point at the correct data source if multiple exist:
- Access dashboard in edit mode
- Click … at top right of panel
- Select correct connection in Data source drop-down
- Repeat for all panels
- Save changes to dashboard