This project contains Chaos Toolkit activities for the Honeycomb platform.
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
{
"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.
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.
To run the tests for the project execute the following:
$ pdm run test
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.
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.