Import
Properties
Only filter data sources that support alerting
Signature
all property
By default only data sources that can be queried will be returned. Meaning they have tracing, metrics, logs or annotations flag set in plugin.json file
Signature
annotations property
Only return data sources that support annotations
Set to true to return dashboard data source
Signature
dashboard?: boolean;
filter property
apply a function to filter
Signature
filter?: (dataSource: DataSourceInstanceSettings) => boolean;
metrics property
Only return data sources that support metrics response
Signature
metrics?: boolean;
Include mixed data source by setting this to true
pluginId property
filter list by plugin
Signature
pluginId?: string;
tracing property
Only return data sources that support tracing response
Signature
Only returns datasources matching the specified types (ie. Loki, Prometheus)
Signature
type?: string | string[];
variables property
Set to true to return data source variables