You're viewing version 3.4 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
show datasources
The show datasources command queries data sources configured in the PPL engine. The show datasources command can only be used as the first command in a PPL query.
To use the show datasources command, plugins.calcite.enabled must be set to false.
Syntax
The show datasources command has the following syntax:
show datasources
The show datasources command takes no parameters.
Example 1: Fetch all Prometheus data sources
The following query fetches all Prometheus data sources:
show datasources
| where CONNECTOR_TYPE='PROMETHEUS'
The query returns the following results:
| DATASOURCE_NAME | CONNECTOR_TYPE |
|---|---|
| my_prometheus | PROMETHEUS |