Table of contents
Using
show datasources
command to query datasources configured in the PPL engine. show datasources
command could be only used as the first command in the PPL query.show datasources
The example fetches all the datasources of type prometheus.
PPL query for all PROMETHEUS DATASOURCES:
os> show datasources | where CONNECTOR_TYPE='PROMETHEUS'; fetched rows / total rows = 1/1 +-------------------+------------------+ | DATASOURCE_NAME | CONNECTOR_TYPE | |-------------------+------------------| | my_prometheus | PROMETHEUS | +-------------------+------------------+