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.
- 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 localhot:3000 (Default port)
- Provide Username:admin and password:admin. It is recommended you update the password
- Install the Cognite Data Fusion plugin.
- Navigate to menu => Administrations => Plugins
- Search and navigate toCognite Data Fusionand click on install.
- Create 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 clicking on Create a Cognite Data Fusion DataSource.
- The data source is created.
Configuring the Settings
- HTTP
- Name: We can update name from 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
- Click Save and test the connection.
- Refer 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
- Click on explore button, you now have access to project data, and can analyse, visualize data and create dashboard.
- For more information on Cognite Data Source for Grafana, you can refer the documentation
Provide Feedback