Skip to main content

Chaos Toolkit extension for Honeycomb

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chaostoolkit_honeycomb-0.6.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

chaostoolkit_honeycomb-0.6.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file chaostoolkit_honeycomb-0.6.2.tar.gz.

File metadata

File hashes

Hashes for chaostoolkit_honeycomb-0.6.2.tar.gz
Algorithm Hash digest
SHA256 74542cd65f287d0e8736b56f4b89e45b872884d8869790dc73caa39557e0d71b
MD5 abfa3c65f3373fbbb75d5e3089e61aa9
BLAKE2b-256 1f8173dd4ca217755f29f6a1b65ae4965eba066f8d220d65a712b2497c7f1a6e

See more details on using hashes here.

File details

Details for the file chaostoolkit_honeycomb-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chaostoolkit_honeycomb-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91101413e6c1cf956a56712374144a65fbd653ac5735e0763b73d41ccc2666cb
MD5 e52747f157888dd317ac6d8325660f05
BLAKE2b-256 4dc35b94c280b1cf295e2864c537324c01b653a007e432db9eeb0fbdc2fc02c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page