A tool for deploying and managing catchpoint health checks using configuration as code
Project description
Catchpoint Configurator
A Python-based tool for managing Catchpoint monitoring configurations as code.
versions
health
stats
Features
- Deploy and manage Catchpoint tests and dashboards using YAML configurations
- Validate configurations against schemas
- Template support for reusable configurations
- CLI interface for all operations
- Support for both test and dashboard configurations
- Integration with Catchpoint API v2
Installation
pip install catchpoint-configurator
Quick Start
- Set up your Catchpoint API credentials:
export CATCHPOINT_CLIENT_ID="your_client_id"
export CATCHPOINT_CLIENT_SECRET="your_client_secret"
- Create a test configuration:
type: test
name: "my-web-test"
url: "https://example.com"
frequency: 300 # 5 minutes
nodes:
- "US-East"
- "US-West"
- "EU-West"
alerts:
- name: "High Response Time"
metric: "response_time"
threshold: 2000
operator: ">"
recipients:
- email: "alerts@example.com"
- Deploy the configuration:
catchpoint-configurator deploy test-config.yaml
Usage
CLI Commands
deploy: Deploy a configurationvalidate: Validate a configuration filelist: List existing configurationsapply-template: Apply a template with variablesupdate: Update an existing configurationdelete: Delete a configurationexport: Export a configurationimport-config: Import a configuration
Examples
Validate a configuration:
catchpoint-configurator validate test-config.yaml
List all tests:
catchpoint-configurator list --type test
Apply a template:
catchpoint-configurator apply-template web-test variables.yaml
Configuration Examples
See the examples/ directory for more configuration examples:
test-config.yaml: Example test configurationdashboard-config.yaml: Example dashboard configurationtemplates/web-test.yaml: Example templatetemplates/variables.yaml: Example template variables
Development
Setup
- Clone the repository:
git clone https://github.com/fleXRPL/catchpoint-configurator.git
cd catchpoint-configurator
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -e ".[dev]"
Running Tests
pytest
Code Style
black .
isort .
flake8
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file catchpoint_configurator-0.1.0.tar.gz.
File metadata
- Download URL: catchpoint_configurator-0.1.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c564fa85b4da9f7629f1ca570efbfbc3b26e01f0d893c3aeca8319384ba624c
|
|
| MD5 |
a6ef20ad322054514a60d8b570c99c2b
|
|
| BLAKE2b-256 |
6731d530dac02ff96c2990df6353219ef3c4f542d3d7cb2919a6315511a1f424
|
Provenance
The following attestation bundles were made for catchpoint_configurator-0.1.0.tar.gz:
Publisher:
workflow.yml on fleXRPL/catchpoint-configurator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
catchpoint_configurator-0.1.0.tar.gz -
Subject digest:
6c564fa85b4da9f7629f1ca570efbfbc3b26e01f0d893c3aeca8319384ba624c - Sigstore transparency entry: 198259384
- Sigstore integration time:
-
Permalink:
fleXRPL/catchpoint-configurator@0e24b852e19ccf444428c2a92606d36c1f510601 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fleXRPL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0e24b852e19ccf444428c2a92606d36c1f510601 -
Trigger Event:
push
-
Statement type:
File details
Details for the file catchpoint_configurator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: catchpoint_configurator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc82e3a3e5a6894c0d0c24217a27957c464a11614c147015a805af2670472405
|
|
| MD5 |
9976d782f3bc25c88016f134abde5148
|
|
| BLAKE2b-256 |
2d1caf38e8bca915e09b84a8870ee6918cfb9102bfca0953c058b1137473c5a1
|
Provenance
The following attestation bundles were made for catchpoint_configurator-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on fleXRPL/catchpoint-configurator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
catchpoint_configurator-0.1.0-py3-none-any.whl -
Subject digest:
dc82e3a3e5a6894c0d0c24217a27957c464a11614c147015a805af2670472405 - Sigstore transparency entry: 198259400
- Sigstore integration time:
-
Permalink:
fleXRPL/catchpoint-configurator@0e24b852e19ccf444428c2a92606d36c1f510601 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fleXRPL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0e24b852e19ccf444428c2a92606d36c1f510601 -
Trigger Event:
push
-
Statement type: