Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.14 KB

datasources.md

File metadata and controls

26 lines (17 loc) · 1.14 KB

Working with data sources

This document describes how to create data sources.

Data source properties

Data sources are represented by the GrafanaDataSource custom resource. Examples can be found in deploy/examples/datasources.

A single GrafanaDataSource resource can contain a list of data sources.

To get a quick overview of the GrafanaDataSource you can also look at the API docs. The following properties are accepted in the spec:

  • name: The filename of the data source that gets mounted into a volume in the grafana instance. Not to be confused with metadata.name.
  • datasources: A list of data source definitions. Check the official documentation.

A data source accepts all properties listed here, but does not support apiVersion and deleteDatasources.

For custom datasources provided by plugins, use the customJsonData and customSecureJsonData fields instead of jsonData and secureJsonData.

To see how to install datasource plugins, see Plugins.