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

      Signature

      dashboard property

      Signature

      1. dashboard?: boolean;

      apply a function to filter

      Signature

      1. filter?: (dataSource: DataSourceInstanceSettings) => boolean;

      logs property

      Only return data sources that support logging response

      Signature

      1. logs?: boolean;

      metrics property

      Only return data sources that support metrics response

      Signature

      mixed property

      Include mixed data source by setting this to true

      1. mixed?: boolean;

      filter list by plugin

      Signature

      1. pluginId?: string;

      tracing property

      Only return data sources that support tracing response

      Signature

        type property

        Only returns datasources matching the specified types (ie. Loki, Prometheus)

        Signature

        variables property

        Set to true to return data source variables

        Signature