- Other s
- databases outside of
Prerequisites
To follow the steps on this page:- Create a target with the Real-time analytics capability enabled. You need your connection details. This procedure also works for .
Query another data source
To query another data source:You create FDWs with the
postgres_fdw extension, which is enabled by default in .- Connect to your service See how to connect.
-
Create a server
Run the following command using your connection details:
-
Create user mapping
Run the following command using your connection details:
-
Import a foreign schema (recommended) or create a foreign table
-
Import the whole schema:
-
Alternatively, import a limited number of tables:
-
Create a foreign table. Skip if you are importing a schema:
-
Import the whole schema:
tsdbadmin role assigned already has the required USAGE permission to create FDWs. You can enable another user, without the tsdbadmin role assigned, to query foreign data. To do so, explicitly grant the permission. For example, for a new grafana user: