Skip to content

Application get data from Jaeger Opentracing every X minutes and POST to Mattermost webhook

License

Notifications You must be signed in to change notification settings

omggga/jaeger-to-mattermost

Repository files navigation

jaeger-to-mattermost

jaeger-to-mattermost is an application that retrieves error traces from Jaeger Opentracing every minute and POSTs them to Mattermost webhook.

How to install

If you are using Docker, run the following commands:

docker build . -t $NAME
docker run -d -e NAME=$NAME -p 3005:3005 --restart always $NAME

If you are using only Node.js, follow these steps in the app directory:

npm install
node ./index.js

How to start application

To start the application, you should use the web interface. By default, the app runs on port 3005, but you can change it in index.js.

To start the app, make a GET request to http://domain.com:3005/start, and to stop it, make a GET request to http://domain.com:3005/stop.

Application Configuration

The default configuration parameters are:

start: new Date().getTime() - backInverval , // The time app start to search error traces
backInverval: 2 * 60000, // The interval between start and end paremeters of jaeger
requestInterval: 1 * 60000, // The interval app request data from jaeger
limit: 5 //Prevent spam when there is a lot of errors

Contributing

Contributions are always welcome! Here are the steps to follow:

  1. Fork this repository
  2. Create a new branch: git checkout -b my-new-feature
  3. Make your changes and commit them: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

This project is licensed under the MIT License.

About

Application get data from Jaeger Opentracing every X minutes and POST to Mattermost webhook

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published