GetDataSourceListFilters interface
Signature
export interface GetDataSourceListFilters
Import
import { GetDataSourceListFilters } from '@grafana/runtime';
Properties
Property | Type | Description |
---|---|---|
alerting | boolean |
Only filter data sources that support alerting |
all | boolean |
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 |
annotations | boolean |
Only return data sources that support annotations |
dashboard | boolean |
Set to true to return dashboard data source |
filter | (dataSource: DataSourceInstanceSettings) => boolean |
apply a function to filter |
logs | boolean |
Only return data sources that support logging response |
metrics | boolean |
Only return data sources that support metrics response |
mixed | boolean |
Include mixed data source by setting this to true |
pluginId | string |
filter list by plugin |
tracing | boolean |
Only return data sources that support tracing response |
type | string | string[] |
Only returns datasources matching the specified types (ie. Loki, Prometheus) |
variables | boolean |
Set to true to return data source variables |
alerting property
Only filter data sources that support alerting
Signature
alerting?: boolean;
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
all?: boolean;
annotations property
Only return data sources that support annotations
Signature
annotations?: boolean;
dashboard property
Set to true to return dashboard data source
Signature
dashboard?: boolean;
filter property
apply a function to filter
Signature
filter?: (dataSource: DataSourceInstanceSettings) => boolean;
logs property
Only return data sources that support logging response
Signature
logs?: boolean;
metrics property
Only return data sources that support metrics response
Signature
metrics?: boolean;
mixed property
Include mixed data source by setting this to true
Signature
mixed?: boolean;
pluginId property
filter list by plugin
Signature
pluginId?: string;
tracing property
Only return data sources that support tracing response
Signature
tracing?: boolean;
type property
Only returns datasources matching the specified types (ie. Loki, Prometheus)
Signature
type?: string | string[];
variables property
Set to true to return data source variables
Signature
variables?: boolean;
Related Grafana resources
Getting started with Grafana 8
Grafana 8.0 is here! Join us for a live walkthrough on how to get started using Grafana 8 and the Grafana 8 user interface while showing how to set up monitoring for a web service that uses Prometheus and Loki to store metrics and logs.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.