Configuring Grafana to connect to FactoryTalk DataMosaix
This section describes how to configure Grafana to connect to your FactoryTalk DataMosaix.
Prerequisites
- Access to FactoryTalk DataMosaix.
- Data Scientist role is assigned to create applications in FactoryTalk DataMosaix.
- The application is registered in FactoryTalk DataMosaix. If you have not registered an application yet, refer to Register Application.
Configuring Grafana to connect to FactoryTalk DataMosaix
- Register the application in FactoryTalk DataMosaix. For information on registering an application in FactoryTalk DataMosaix, refer to Register Application.
- Download and Install Grafana (available on Chocolaty GUI). Check if the service is running.
- Navigate to localhost:3000 (Default port).
- Provide Username:admin and password:admin. It is recommended you to update the password.
- Install the Cognite Data Fusion plugin.
- Navigate to menu >Administrations>Plugins.
- Search and navigate toCognite Data Fusionand clickInstall.
- Create a new data source in the Cogite Data Fusion portal.
- Navigate to menu >Connections>Connect data.
- Search and navigate toCognite Data Fusion.
- Create a new data source by clickingCreate a Cognite Data Fusion DataSource.
- The data source is created.
Configuring the Settings
- HTTP
- Name: Update the name from the default name.
- Project: The name of the project in FactoryTalk DataMosaix.
- API Host:westeurope-1.cognitedata.com(Host URL)
- Auth: We are using OAuth2, so, enableoption.OAuth2 client credentials
- Token URL:https://datamosaix-prod.us.auth0.com/oauth/token
- Client ID: Refer to the Client ID generated while registering the application.
- Client Secret: Refer to the Client Secret generated while registering the application.
- Scope: user_impersonation
- ClickSave & test.
- Refer to the following image for a valid configuration.NOTE:If you got error Bad Gateway, Check API Host written aswesteurope-1.cognitedata.comnot https://westeurope-1.cognitedata.com.
- ClickExploreto get access to the project data, you can analyze and visualize data and create the dashboard.
- For more information on Cognite Data Source for Grafana, you can refer to the documentation.
Provide Feedback