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.
Metadata
Release files for catchpoint-configurator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| catchpoint_configurator-0.1.0.tar.gz | 31.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| catchpoint_configurator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.5 kB
Release files / catchpoint_configurator-0.1.0.tar.gz
| Download URL | catchpoint_configurator-0.1.0.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c564fa85b4da9f7629f1ca570efbfbc3b26e01f0d893c3aeca8319384ba624c
|
|
BLAKE2b-256 checksum How to use checksums |
6731d530dac02ff96c2990df6353219ef3c4f542d3d7cb2919a6315511a1f424
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 16, 2025.
Transparency logRelease files / catchpoint_configurator-0.1.0-py3-none-any.whl
| Download URL | catchpoint_configurator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc82e3a3e5a6894c0d0c24217a27957c464a11614c147015a805af2670472405
|
|
BLAKE2b-256 checksum How to use checksums |
2d1caf38e8bca915e09b84a8870ee6918cfb9102bfca0953c058b1137473c5a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 16, 2025.
Transparency log