Plugins 〉Chaos Mesh
Chaos Mesh
Chaos Mesh Data Source
Grafana data source plugin for Chaos Mesh.
Features
- Visualize Chaos Events on the table
- Show Chaos Events on the graph with Annotations
- Display different Chaos Events by Variables
Installation
grafana-cli plugins install yeya24-chaos-mesh-datasource
Setup
After installed, you can add this data source in Configuration -> Data Sources, then you will enter the settings page:
Only the URL
field needs to be filled in and the others can be ignored.
Assuming you have a local Chaos Mesh installed, the dashboard will default export its API in port 2333
. So, if you don't modify anything, you can simply fill http://localhost:2333
into it.
Then use port-forward to active:
kubectl port-forward -n chaos-testing svc/chaos-dashboard 2333:2333
Finally, click Save & Test to test the connection. If it shows that the connection is successful, then the setup work has been completed.
Options
Except for the url
, this data source plugin has such options as below:
Name | Description |
---|---|
Limit | Limit the number of returned Chaos Events. The default is 25. If you want to display more events, please increase it. |
Query
Mostly, there will be three options to be responsible for filtering events:
- Experiment - Filter by the experiment name. Must be a full name.
- Namespace - Filter by different namespaces
- Kind - Filter by Chaos kinds
For real world usage, normally you will use these options in two situations:
- Specify all fields to locate an experiment more precisely.
- Let Experiment be empty to reduce the constraints of events filtering.
- Pass a variable like
$experiment
to query to control the events displaying.
Annotations
Edit example:
For usage, you can refer to the content described by Query.
Variables
If you choose the Variables type to query and select the data source to Chaos Mesh, You can get three different kind values.
Specify by choosing different metric:
Experiment
After selection, a text input field will occur, fill in the value of the experiment name you want to settle. Usually, you will fill in the partial name of some experiments to get the related experiment names.
For example, you have two experiments:
random-pod-kill and random-pod-failure
Then you can fill random in the text field to get these experiments.
Namespace
After selection, all available namespaces will show in Preview of values directly. Without other operations.
Kind
Same as Namespace.
How to contribute
Pull a request or open an issue to describe your changes or problems.
License
Same as Chaos Mesh. Under Apache-2.0 License.
Grafana Cloud Pro
- $25 / user / month and includes a free trial for new users
- Available with a Grafana Cloud Pro plan
- Access to 1 Enterprise plugin
- Fully managed service (not available to self-manage)
Grafana Cloud Advanced / Grafana Enterprise
- Available with a Grafana Cloud Advanced plan or Grafana Enterprise license
- Access to all Enterprise plugins
- Run fully managed or self-manage on your own infrastructure
Installing Chaos Mesh on Grafana Cloud:
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
For more information, visit the docs on plugin installation.
Installing on a local Grafana:
For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.
1. Install the Data Source
Use the grafana-cli tool to install Chaos Mesh from the commandline:
grafana-cli plugins install
The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.
Changelog
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.
[0.2.2] - 2021-04-15
Changed
- Allow custom value in the select field
[0.2.0] - 2021-03-09
Added
- Visualize Chaos Events on the table
- Show Chaos Events on the graph with Annotations
- Display different Chaos Events by Variables