Skip to content

Add Caching support to Datasources #765

@fatbasstard

Description

@fatbasstard

Hi,

Currently datasource caching (Documentation) is not supported by the Provider.

We're moving to Enterprise instances and would like to enable Caching using Terraform. Asked Grafana about provisioning option and got this reply:

Hello, 
 
Unfortunately as of now, is not possible to enable/disable cache for a datasource via provisioning, but there is an API you could programmatically call to enable it as part of your deployment:
 
/api/datasources/:datasourceUId/cache/enable
/api/datasources/:datasourceUId/cache/disable
 
These APIs are yet to be documented but you should be able to use them.
 
In regards of having this feature enabled as part of provisioning, I can certainly pass this over to our Voice of the Customer team to let them know you're interested in this. 
 
Please let me know if you have any further questions or comments. 

So the API supports it, can this be added to the data_source resources?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions