Chaos Toolkit extension for Honeycomb
Project description
Chaos Toolkit Extension for Honeycomb
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
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
File details
Details for the file chaostoolkit_honeycomb-0.6.2.tar.gz
.
File metadata
- Download URL: chaostoolkit_honeycomb-0.6.2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74542cd65f287d0e8736b56f4b89e45b872884d8869790dc73caa39557e0d71b |
|
MD5 | abfa3c65f3373fbbb75d5e3089e61aa9 |
|
BLAKE2b-256 | 1f8173dd4ca217755f29f6a1b65ae4965eba066f8d220d65a712b2497c7f1a6e |
File details
Details for the file chaostoolkit_honeycomb-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: chaostoolkit_honeycomb-0.6.2-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91101413e6c1cf956a56712374144a65fbd653ac5735e0763b73d41ccc2666cb |
|
MD5 | e52747f157888dd317ac6d8325660f05 |
|
BLAKE2b-256 | 4dc35b94c280b1cf295e2864c537324c01b653a007e432db9eeb0fbdc2fc02c6 |