Coder Social home page Coder Social logo

chaos-mesh / datasource Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 8.0 3.05 MB

Grafana data source plugin for Chaos Mesh.

License: Apache License 2.0

JavaScript 13.05% TypeScript 84.56% Shell 0.21% Dockerfile 2.18%
grafana-plugin chaos-engineering chaos-mesh data-source grafana-datasource

datasource's Introduction

Chaos Mesh Logo

Chaos Mesh Logo


LICENSE codecov Go Report Card GoDoc Upload Image

FOSSA Status CII Best Practices Artifact Hub

Chaos Mesh is an open source cloud-native Chaos Engineering platform. It offers various types of fault simulation and has an enormous capability to orchestrate fault scenarios.

Using Chaos Mesh, you can conveniently simulate various abnormalities that might occur in reality during the development, testing, and production environments and find potential problems in the system. To lower the threshold for a Chaos Engineering project, Chaos Mesh provides you with a visualization operation. You can easily design your Chaos scenarios on the Web UI and monitor the status of Chaos experiments.

cncf_logo cncf_logo

Chaos Mesh is a Cloud Native Computing Foundation (CNCF) incubating project. If you are an organization that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Chaos Mesh plays a role, read the CNCF announcement.


At the current stage, Chaos Mesh has the following components:

  • Chaos Operator: the core component for chaos orchestration. Fully open sourced.
  • Chaos Dashboard: a Web UI for managing, designing, monitoring Chaos Experiments.

See the following demo video for a quick view of Chaos Mesh:

Watch the video

Chaos Operator

Chaos Operator injects chaos into the applications and Kubernetes infrastructure in a manageable way, which provides easy, custom definitions for chaos experiments and automatic orchestration. There are two components at play:

Chaos Controller Manager: is primarily responsible for the scheduling and management of Chaos experiments. This component contains several CRD Controllers, such as Workflow Controller, Scheduler Controller, and Controllers of various fault types.

Chaos Daemon: runs as DaemonSet and has Privileged permission by default (which can be disabled). This component mainly interferes with specific network devices, file systems, kernels by hacking into the target Pod Namespace.

Chaos Operator

Chaos Operator uses CustomResourceDefinition (CRD) to define chaos objects.

The current implementation supports a few types of CRD objects for fault injection, namely PodChaos, NetworkChaos, IOChaos, TimeChaos, StressChaos, and so on. You can get the full list of CRD objects and their specifications in the Chaos Mesh Docs.

Quick start

See Quick Start and Install Chaos Mesh using Helm.

Contributing

See the contributing guide and development guide.

Adopters

See ADOPTERS.

Blogs

Blogs on Chaos Mesh design & implementation, features, chaos engineering, community updates, etc. See Chaos Mesh Blogs. Here are some recommended ones for you to start with:

Community

Please reach out for bugs, feature requests, and other issues via:

  • Following us on Twitter @chaos_mesh.

  • Joining the #project-chaos-mesh channel in the CNCF Slack workspace.

  • Filling an issue or opening a PR against this repository.

Community meetings

  • Chaos Mesh Community Monthly (Community and project-level updates, community sharing/demo, office hours)

  • Chaos Mesh Development Meeting (Releases, roadmap/features/RFC planning and discussion, issue triage/discussion, etc)

Community blogs

Community talks

Media coverage

License

Chaos Mesh is licensed under the Apache License, Version 2.0. See LICENSE for the full content.

FOSSA Status

Trademark

Chaos Mesh is a trademark of The Linux Foundation. All rights reserved.

datasource's People

Contributors

dependabot[bot] avatar g1eny0ung avatar strrl avatar yeya24 avatar zhouqiang-cl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

datasource's Issues

Grafana Plugin

Hi there! I noticed a few broken images on the Grafana Plugin page and also see that the plugin is not signed.

I'd like to confirm that everything is in good state with this plugin so I can recommend it to Grafana Cloud users and would love to help out with getting this signed if you'd like.

Angular is deprecated - please migrate to React

Hello 👋 from Grafana Labs

We have detected that your plugin might still be using AngularJS and recommend migrating it to React, so that it may continue to operate successfully in future versions of Grafana.

You can read more on why and how by visiting our documentation: https://grafana.com/docs/grafana/latest/developers/angular_deprecation/

You can reach out to us with any questions via slack: slack.grafana.com - channel #plugins or our plugin development community forum

Can't see any data in Grafana

Hello, first of all BIG thanks to you for making your ChaosMesh observable through Grafana!

I added the Datasource according to the tutorial and Grafana accepted and saved it. But when I try to add the first panel, it looks like Grafana isn't able to fetch any data from it. I can't even choose a namespace. See below picture.

Do you have any tips to debug this? Maybe I'm just missing something.

grafik

Ugrades to plugin

As it is today, the plugin is looks very limited.

Some cons that I found using it:

  • Cannot filter multiple experiments by 'name' in the annotation (can only select one or all experiments)
  • Cannot filter multiple experiments by 'kind' (only one possibility)
  • When using Worflows, all finished experiments go to "archives" after running, so I can't see them in Grafana Dashboard (the plugin only select 'active' experiments)
  • Maybe the possibility to filter by 'labelSelector' so I can see in the service monitoring when it recieved some Chaos?

Do you guys have any plans to improve the plugin?

Plugin not working with Chaos Mesh v2.0.1.

What version of Chaos Mesh Datasource are you using?
0.2.2

What version of Chaos Mesh are you using?
2.0.1

What did you do?

  • I had Chaos Mesh 1.1.2 installed and the plugin working.

  • I've upgraded Chaos Mesh to version 2.0.1 and the plugin stopped working, now giving Annotation Query Failed errors.

  • Just to be sure, I tried pointing the datasource to a dashboard with Chaos Mesh version 1.1.2 and it worked.

So, there might be an incompatibility with Chaos Mesh version 2.

What did you expect to see?
Grafana chaos mesh datasource plugin working with no errors

What did you see instead?

Grafana is giving Annotation Query Failed errors.

AnnotationSrv.query error TypeError: l.sent(...).data.map is not a function
at t.eval (DataSource.ts:157)
at eval (tslib.es6.js:103)
at Object.eval [as next] (tslib.es6.js:132)
at i (tslib.es6.js:74)
(anonymous) @ annotations_srv.ts:89

Grafana query for chaos mesh gives "Object(...) is not a function"

What version of Chaos Mesh Datasource are you using?

2.2.3

What version of Chaos Mesh are you using?

2.6.2

What version of Grafana are you using?

7.5.15

What did you do?

I installed Chaos Mesh v2.6.2 using the tutorial there. I created some experiments and workflows that worked fine.

I tried to follow the manual part of this tutorial to install the Grafana plugin. It worked well until the Query section.

What did you expect to see?

I expect to be able to run queries as explained in the tutorial.

What did you see instead?

Grafana is producing an error when running a query.

image
runRequest.catchError TypeError: Object(...) is not a function
    at c.value (datasource.ts:64:41)
    at c.value (datasource.ts:36:1)
    at c.eval (datasource.ts:114:38)
    at c (runtime.js:63:40)
    at Generator._invoke (runtime.js:293:22)
    at Generator.next (runtime.js:118:21)
    at eval (module.js:1:9839)
    at new Promise (<anonymous>)
    at Q (tslib.es6.js:70:37)
    at eval (datasource.ts:96:41)

When I try to create an Annotation I also get an error.

AnnotationSrv.query error TypeError: Object(...) is not a function
    at c.value (datasource.ts:64:41)
    at c.value (datasource.ts:36:1)
    at c.eval (datasource.ts:168:28)
    at c (runtime.js:63:40)
    at Generator._invoke (runtime.js:293:22)
    at Generator.next (runtime.js:118:21)
    at eval (module.js:1:9839)
    at new Promise (<anonymous>)
    at Q (tslib.es6.js:70:37)
    at c.value (module.js:1:15071)

Chaos dashboard returns error when receiving queries from grafana

I'm trying to launch the latest version of chaos mesh (2.0.2) + grafana 8.1.7. I've installed the grafana plugin from the v2 branch (tried the official one before that, but realized it's not working with chaos mesh 2.0.2). The version from branch v2 is not working either, when grafana tries to query the chaos dashboard, it receives an error html page saying "You need to enable JavaScript to run this app"

Is there a working version of the grafana plugin at the moment with v2.0.2? When is it expected to be released or at least be in a working state? I don't want to downgrade chaos mesh and I would like to make it work with grafana ... I suppose the issue is not with the plugin itself, but with the way chaos dashboard responds at the moment.

Any help will be appreciated.

Angular is deprecated - please migrate to React

Hello 👋 from Grafana Labs

We have detected that your plugin might still be using AngularJS and recommend migrating it to React, so that it may continue to operate successfully in future versions of Grafana.

You can read more on why and how by visiting our documentation: https://grafana.com/docs/grafana/latest/developers/angular_deprecation/

You can reach out to us with any questions via slack: slack.grafana.com - channel #plugins or our plugin development community forum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.