Code Monkey home page Code Monkey logo

fluent-plugin-raygun's Introduction

Overview

fluent-plugin-raygun is a fluentd output plugin that sends aggregated errors/exception events to Raygun. Raygun is a event logging and aggregation platform (and more!).

This plugin extends the fluent buffered output and reports the events as crash reports to your Raygun dashboard. Currently we support limited information in the reports sent by our plugin. The reports include the following information:

OccuredOn - The date & time in which the event was sent by the raygun plugin.

MachineName - The hostname provided through the plugin configuration.

ErrorMessage - The event's record message.

Tags - The tag used to seperate the event in the fluentd logging.

Requirements

This plugin requires:

  • Ruby v1.9.3 or higher
  • FluentD v0.12 or v0.10

Setup Instructions

Once FluentD has been installed following the instructions detailed here.

Install the Raygun plugin using gem:

fluent-gem install fluent-plugin-raygun

Update your FluentD config to include a matching rule to output to Raygun:

<match>
   @type raygun
   api_key YOUR_API_KEY
</match>

Options

api_key - The key used to validate the reports sent to Raygun. Found in the Raygun dashboard under application settings.

default_level - The logging level at which to send events (options: fatal, error, warning, info or debug). The default is set to error.

default_logger - If a logger is not provided the default logger is used. The default is set to fluentd.

endpoint_url - The URL used by the raygun plugin to post reports to. The default is set to https://api.raygun.com.

flush_interval - The time between data flushes. The default is set to zero (0) seconds.

hostname_command - The name of the server reporting the error. The default is set to hostname.

record_already_formatted - If set to false we transform the event's record into the format required by raygun's API. The default is set to false.

Copyright

Copyright © 2018 - Raygun (@raygunio)

License

MIT License

fluent-plugin-raygun's People

Contributors

ben-scully avatar cmdrkeen avatar mduncan26 avatar ubermouse avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fluent-plugin-raygun's Issues

Use Kubernetes metadata

Fluentd has plugin that extract metadata from Kubernetes (pod name, labels, etc) and enrich the record with this metadata. This can be useful for this plugin for multiple features:

  • Dynamic API key. Currently, there is need to define a match for each different pod, so it will use a different API key. Using the metadata, the API key can be read from Kubernetes label.
  • Log enrichment: Add all the metadata as userCustomData.
  • Exception: Use labels to find the exception field on the logs and read it.
  • Version: Use labels to read the version of the app

What do you think? Is this should be part of the plugin?

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.