Plugins 〉Chaos Mesh

Chaos Mesh Project Team

Sign up to receive occasional product news and updates:

Data Source

Chaos Mesh

  • Overview
  • Installation
  • Change log
  • Related content

Data Source

Grafana data source plugin for Chaos Mesh.

Require: Chaos Mesh >= 2.1.0, Grafana >= 7.0.0


  • Visualize Chaos Events on the table
  • Show Chaos Events on the graph with Annotations
  • Display different Chaos Events by Variables


grafana-cli plugins install chaosmeshorg-datasource

Manual installation

Download the plugin zip package with the following command or go to to download:

curl -LO

After downloading, unzip:


Then update and save the grafana.ini file:

  allow_loading_unsigned_plugins = chaosmeshorg-datasource

Finally, restart Grafana to load the plugin.


Once installed, go to Configuration -> Data sources and add Chaos Mesh, then go to the configuration page:


Assuming you have Chaos Mesh installed locally, Dashboard will export the API on port 2333 by default. So, if you haven't changed anything, you can just fill in http://localhost:2333.

Then use the port-forward command to activate:

kubectl port-forward -n chaos-testing svc/chaos-dashboard 2333:2333

Finally, click Save & Test to test the connection. If it shows a successful notification, the setup is complete.


The Data Source plugin looks at the Chaos Mesh through the lens of events, and the following options are responsible for filtering the different events:

  • Object ID

    Filter by object uuid.

  • Namespace

    Filter by different namespace.

  • Name

    Filter by object name.

  • Kind

    Filter by kind (PodChaos, Schedule...).

  • Limit

    Limit the number of events.

They will be passed as parameters to the /api/events API.


You can integrate Chaos Mesh's events into the panel via Annotations, the following is a sample creation:


Please refer to the contents of Query to fill in the corresponding fields.


If you choose the type to Query and select the data source to Chaos Mesh, you can retrieve the variables by different metrics:


  • Namespace

    After selection, all available namespaces will show in Preview of values directly. Without other operations.

  • Kind

    Same as Namespace. Retrieve all kinds.

  • Experiment

    Same as Namespace. Retrieve current all experiments.

  • Schedule

    Same as Namespace. Retrieve current all schedules.

  • Workflow

    Same as Namespace. Retrieve current all workflows.

How to contribute

Pull a request or open an issue to describe your changes or problems.


Same as Chaos Mesh. Under Apache-2.0 License.

Installing Chaos Mesh on Grafana Cloud:

For more information, visit the docs on plugin installation.


All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.2.3] - 2022-08-07


  • Update the outdated annotations screenshot.

[2.2.2] - 2022-07-31


Ready for submission to grafana official plugins repository. ?

[2.2.1] - 2022-07-28


  • Clone the annotation query before using it, which prevents mutating the original value if you use a variable in annotations.
  • Reset the kind field to input in annotations, which allows you to use variables in the kind field, such as $kind.

[2.2.0] - 2022-06-24


  • Allow to specify a limit on the number of events for all queries in the settings
  • Add Workflow metric to the Variables


  • Optimize the display of annotations


  • Allow the query string to be specified in the Variables Query

[2.1.0] - 2021-09-16


  • Compatible with Chaos Mesh 2.x. (After 2.0.x, will start with 2.1.x)
  • Bump the minimal grafana version to 7.0.0
  • Bump grafana/toolkit to 8.x

[0.2.2] - 2021-04-15


  • Allow custom value in the select field

[0.2.0] - 2021-03-09


  • Visualize Chaos Events on the table
  • Show Chaos Events on the graph with Annotations
  • Display different Chaos Events by Variables