Setting up Grafana for Data Gate instance
monitoring (optional)
Grafana, which is developed by Grafana Labs, is a graphical, browser-based tool that
allows you to monitor metrics of various applications. This means that you can set it up to display
metrics that were captured by Prometheus. To make Grafana work, you must complete a few extra
configuration steps after you've set up Prometheus.
Before you begin
Make sure that Prometheus has been set up properly for the Data Gate instances you want to monitor.
For the
creation of a Grafana dashboard, you need a JSON definition file (named
datagate_table_sync_grafana_dashboard.json in this topic). Call IBM support to
request this file.
Procedure
Log in to the OpenShift® server where the Data Gate instance is installed.
Important: The Thanos Querier endpoint
(https://thanos-querier.openshift-monitoring.svc:9091) is the recommended endpoint
for the querying of OpenShift user workload
monitoring metrics. It provides a unified query interface and handles authentication
properly.
Note: If the token expires, or you need to regenerate it, run the kubectl create
token command in step 6 again and update the
Authorization header value in Grafana.
Click Save and test.
You should see the message
Data source is working.
Creating a Grafana dashboard
To create a Grafana dashboard:
On the sidbar, select Dashboards.
Click New.
Select Import.
Select the datagate_table_sync_grafana_dashboard.json file for
uploading.
Select the Prometheus data source you created in step 12.