Configure the Catchpoint data source
This document explains how to configure the Catchpoint data source.
Before you begin
Before you configure the data source, ensure you have:
- Grafana permissions: Organization administrator role to add a data source.
- Catchpoint account: Access to the Catchpoint portal.
- Catchpoint REST API v2 key: A bearer token generated in the Catchpoint portal.
Key concepts
If you’re new to Catchpoint, these terms are used throughout the configuration:
Add the data source
To add the Catchpoint data source:
- Click Connections in the left-side menu.
- Click Add new connection.
- Type
Catchpointin the search bar. - Select Catchpoint.
- Click Add new data source.
Configure settings
Use the following settings to configure the data source:
Authentication
The Catchpoint data source authenticates with the Catchpoint client API using a bearer token. Generate a REST API v2 key in the Catchpoint portal, then enter it in Grafana.
To get your REST API v2 key:
- Log in to the Catchpoint portal.
- Navigate to Settings > API.
- Find the REST API V2 Key under the REST API section.
Enter the key in the data source configuration:
Verify the connection
Click Save & test to verify the connection. Grafana validates the token against the Catchpoint client API.
- On success, the data source is ready to query.
- If the token is missing or empty, the test fails with an
invalid/empty bearer tokenerror. - If the token is invalid, the test fails with a
status code: 401error.
For help resolving connection problems, refer to Troubleshooting.
Provision the data source
You can define the data source in YAML files as part of the Grafana provisioning system. For more information, refer to Provisioning Grafana data sources.
apiVersion: 1
datasources:
- name: Catchpoint
type: grafana-catchpoint-datasource
secureJsonData:
catchpoint.token: <CATCHPOINT_REST_API_V2_KEY>Replace <CATCHPOINT_REST_API_V2_KEY> with your Catchpoint REST API v2 key.
Provision with Terraform
You can also manage the data source with the Grafana Terraform provider using the grafana_data_source resource.
resource "grafana_data_source" "catchpoint" {
type = "grafana-catchpoint-datasource"
name = "Catchpoint"
secure_json_data_encoded = jsonencode({
"catchpoint.token" = var.catchpoint_token
})
}
variable "catchpoint_token" {
type = string
description = "Catchpoint REST API v2 key"
sensitive = true
}Store the token outside of version control, for example in a TF_VAR_catchpoint_token environment variable or a secrets manager.


