Skip to main content

A chaostoolkit control to store events on different data stores/monitoring platfoms

Project description

Chaostoolkit storeevent Control

This control allows you to store events on a configurable data store. The data store can then be used to monitor events on a monitoring dashboard or to collect events on monitoring systems like Prometheus. The control currently implements the following drivers:

  • an influx driver to store events on a InfluxDB time series database
  • a grafana driver to store events on a Grafana server as annotations

To understand what a chaos-toolkit control is please refer to the official documentation on controls.

The Influx driver

InfluxDB is one of the most used time series data stores, it's implemented in golang and therefore is pretty fast and very easy to install and set up. Moreover, if you use Gatling for your performance input load simulations, it is pretty simple to store Gatling metrics on InfluxDB as well (as the Influx server can be configured to accept data in the graphite protocol), so you can use the same Influx data store for Gatling metrics and chaos toolkit events.

You can configure the Influx driver setting these parameters in the configuration section (the values provided represent the defaults):

    "configuration": {
      "influxdb": {
        "host": "localhost",
        "port": 8086,
        "http_endpoint": "/write",
        "database": "gatlingdb"
      }
    }

Then, at the proper level, configure the control driver:

            "controls": [
                {
                    "name": "tracing",
                    "provider": {
                        "type": "python",
                        "module": "chaosdb.influx"
                    }
                }
            ],

The Grafana driver

The Grafana driver can be quite convenient if you use grafana for your dashboards. The driver sends chaos-toolkit events directly to Grafana using the Annotation HTTP API. Moreover it is able to draw a region annotation around the whole experiment, making experiment visualization more visible.

The grafana driver accepts the following configuration parameters (defaults provided):

    "configuration": {
      "grafana": {
        "host": "localhost",
        "port": 3000,
        "username": "admin",
        "password": "admin",
        "dashboardId": 1,
        "only_actions": 0,
        "tags": []
      }
    }

The 'dashboardId' parameter points to the dashboard annotations are added to. The 'only_actions' parameter allows to trace only actions, not probes. The 'tags' parameter allows to add custom tags to each annotation.

Refer to the official Grafana documentation for details on how to set up data stores for InfluxDB databases. For the Grafana driver just use the default grafana data store when configuring the annotations for your dashboard.

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

chaosdb-0.2.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chaosdb-0.2.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

chaosdb-0.2.2-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file chaosdb-0.2.2.tar.gz.

File metadata

  • Download URL: chaosdb-0.2.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for chaosdb-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b3dbaa8948fe09deaa83b2eed47bb53913f6d5d692ab2e6359ae80481d96dad3
MD5 ed62b2443665889b814f2ff49a232e0d
BLAKE2b-256 f788a3ada3a7f2068166e0519a3cce9edd1ba9bc71e76df718e7d8c542b23b2e

See more details on using hashes here.

File details

Details for the file chaosdb-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: chaosdb-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for chaosdb-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a199ab6475cf9ce21d3a3f82864f048898314f38dc82600d48fe78e555592d
MD5 16626c51621578a682883c00a8e1b551
BLAKE2b-256 fa9d7507a13ae5a24751263e387443e497e477d8e87d03d7e292786620f0bd8e

See more details on using hashes here.

File details

Details for the file chaosdb-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: chaosdb-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for chaosdb-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7681299f6e42b43923ffefbf2974155d6576dca9b5f9375a5d469add8a0e7dcf
MD5 956e0e72f10fb07c37636314ce5d4932
BLAKE2b-256 e8f3e96c1fe5cb15c32ce8dc9fdb6391012a480f54700eef6dbb99c9cb3ea2b1

See more details on using hashes here.

Supported by

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