Data sources are regional backends that allow you to store and query metrics, logs and traces. Data sources for Scaleway metrics and logs are enabled by default if you are using Scaleway resources which are integrated into Cockpit. You can create additional data sources to store and query metrics, logs and traces to push custom data.
List data sources
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
path Parameters
regionThe region you want to target
query Parameters
project_idProject ID to filter for, only data sources from this Project will be returned.
originOrigin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
pagePage number to return, from the paginated results.
page_sizeNumber of data sources to return per page.
order_bySort order for data sources in the response.
List data sources › Responses
total_countTotal count of data sources matching the request.
Data sources matching the request within the pagination.
Create a data source
You must specify the data source name and type (metrics, logs, traces) upon creation. The name of the data source will then be used as reference to name the associated Grafana data source.
path Parameters
regionThe region you want to target
Create a data source › Request Body
project_idID of the Project the data source belongs to.
nameData source name.
typeData source type.
retention_daysDuration for which the data will be retained in the data source. Default values are 31 days for metrics, 7 days for logs and traces.
Create a data source › Responses
idID of the data source. (UUID format)
project_idID of the Project the data source belongs to. (UUID format)
nameData source name.
urlData source URL.
typeData source type.
originData source origin.
created_atDate the data source was created. (RFC 3339 format)
updated_atDate the data source was last updated. (RFC 3339 format)
synchronized_with_grafanaIndicates whether the data source is synchronized with Grafana.
retention_daysDuration for which the data will be retained in the data source.
regionRegion of the data source.
current_month_usageUsage of the month in bytes. (in bytes)
Get a data source
Retrieve information about a given data source, specified by the data source ID. The data source's information such as its name, type, URL, origin, and retention period, is returned.
path Parameters
regionThe region you want to target
data_source_idID of the relevant data source.
Get a data source › Responses
idID of the data source. (UUID format)
project_idID of the Project the data source belongs to. (UUID format)
nameData source name.
urlData source URL.
typeData source type.
originData source origin.
created_atDate the data source was created. (RFC 3339 format)
updated_atDate the data source was last updated. (RFC 3339 format)
synchronized_with_grafanaIndicates whether the data source is synchronized with Grafana.
retention_daysDuration for which the data will be retained in the data source.
regionRegion of the data source.
current_month_usageUsage of the month in bytes. (in bytes)
Delete a data source
Delete a given data source. Note that this action will permanently delete this data source and any data associated with it.
path Parameters
regionThe region you want to target
data_source_idID of the data source to delete.
Delete a data source › Responses
Update a data source
Update a given data source attributes (name and/or retention_days).
path Parameters
regionThe region you want to target
data_source_idID of the data source to update.
Update a data source › Request Body
nameUpdated name of the data source.
retention_daysDuration for which the data will be retained in the data source.
Update a data source › Responses
idID of the data source. (UUID format)
project_idID of the Project the data source belongs to. (UUID format)
nameData source name.
urlData source URL.
typeData source type.
originData source origin.
created_atDate the data source was created. (RFC 3339 format)
updated_atDate the data source was last updated. (RFC 3339 format)
synchronized_with_grafanaIndicates whether the data source is synchronized with Grafana.
retention_daysDuration for which the data will be retained in the data source.
regionRegion of the data source.
current_month_usageUsage of the month in bytes. (in bytes)
Get data source usage overview
Retrieve the volume of data ingested for each of your data sources in the specified project and region.
path Parameters
regionThe region you want to target
query Parameters
project_idinterval(in seconds)