Skip to main content

Chaos Toolkit Extension for Honeycomb

Version License

Build, Test, and Lint Python versions

This project contains Chaos Toolkit activities for the Honeycomb platform.

Install

This package requires Python 3.7+

To be used from your experiment, this package must be installed in the Python environment where chaostoolkit already lives.

$ pip install chaostoolkit-honeycomb

Usage

{
    "title": "SLO should not be impacted",
    "description": "n/a",
    "secrets": {
        "honeycomb": {
            "api_key": {
                "type": "env",
                "key": "HONEYCOMB_API_KEY"
            }
        }
    },
    "steady-state-hypothesis": {
        "title": "Use SLO as Steady-State Hypothesis verification",
        "probes": [
            {
                "name": "slo has enough budget left",
                "type": "probe",
                "tolerance": true,
                "provider": {
                    "type": "python",
                    "secrets": ["honeycomb"],
                    "module": "chaoshoneycomb.slo.probes",
                    "func": "slo_has_enough_remaining_budget",
                    "arguments": {
                        "dataset_slug": "ds",
                        "slo_id": "slo1",
                        "min_budget": 7.5
                    }
                }
            }
        ]
    }
}

That's it!

Please explore the code to see existing probes and actions.

Configuration

Specify the Honeycomb API key either via the secrets block or via the HONEYCOMB_API_KEY environment variable. In that later case, you can in fact skip the declaration on the secrets block as the extension will look for it anyway.

Test

To run the tests for the project execute the following:

$ pdm run test

Formatting and Linting

We use a combination of black, ruff, and isort to both lint and format this repositories code.

Before raising a Pull Request, we recommend you run formatting against your code with:

$ pdm run format

This will automatically format any code that doesn't adhere to the formatting standards.

As some things are not picked up by the formatting, we also recommend you run:

$ pdm run lint

To ensure that any unused import statements/strings that are too long, etc. are also picked up.

Contribute

If you wish to contribute more functions to this package, you are more than welcome to do so. Please, fork this project, make your changes following the usual black code style, sprinkling with tests and submit a PR for review.

To contribute to this project, you will also need to install pdm.

Metadata

Release files for chaostoolkit-honeycomb 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chaostoolkit-honeycomb 0.6.2
File Size Uploaded
chaostoolkit_honeycomb-0.6.2.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chaostoolkit-honeycomb 0.6.2
File Interpreter ABI Platform
chaostoolkit_honeycomb-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / chaostoolkit_honeycomb-0.6.2.tar.gz

Download URL chaostoolkit_honeycomb-0.6.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
74542cd65f287d0e8736b56f4b89e45b872884d8869790dc73caa39557e0d71b
BLAKE2b-256 checksum
How to use checksums
1f8173dd4ca217755f29f6a1b65ae4965eba066f8d220d65a712b2497c7f1a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / chaostoolkit_honeycomb-0.6.2-py3-none-any.whl

Download URL chaostoolkit_honeycomb-0.6.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91101413e6c1cf956a56712374144a65fbd653ac5735e0763b73d41ccc2666cb
BLAKE2b-256 checksum
How to use checksums
4dc35b94c280b1cf295e2864c537324c01b653a007e432db9eeb0fbdc2fc02c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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