Skip to main content

Catchpoint Configurator

A Python-based tool for managing Catchpoint monitoring configurations as code.

versions

PyPI version Python Versions CI/CD Pipeline Python

health

Quality Gate Status Overall Coverage Security Rating Maintainability Rating Vulnerabilities Dependabot Status Code style: black

stats

Downloads License: MIT

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

  1. Set up your Catchpoint API credentials:
export CATCHPOINT_CLIENT_ID="your_client_id"
export CATCHPOINT_CLIENT_SECRET="your_client_secret"
  1. 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"
  1. Deploy the configuration:
catchpoint-configurator deploy test-config.yaml

Usage

CLI Commands

  • deploy: Deploy a configuration
  • validate: Validate a configuration file
  • list: List existing configurations
  • apply-template: Apply a template with variables
  • update: Update an existing configuration
  • delete: Delete a configuration
  • export: Export a configuration
  • import-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 configuration
  • dashboard-config.yaml: Example dashboard configuration
  • templates/web-test.yaml: Example template
  • templates/variables.yaml: Example template variables

Development

Setup

  1. Clone the repository:
git clone https://github.com/fleXRPL/catchpoint-configurator.git
cd catchpoint-configurator
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -e ".[dev]"

Running Tests

pytest

Code Style

black .
isort .
flake8

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. 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)

Source distribution for catchpoint-configurator 0.1.0
File Size Uploaded
catchpoint_configurator-0.1.0.tar.gz 31.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for catchpoint-configurator 0.1.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page