Skip to content

trinode/extatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extatic

Delightfully simple metric and error recording with pluggable backends

** WARNING **

  • There are no tests (yet)
  • The code is a mess (for now)
  • Use at your own risk (always)
  • The API WILL change

Installation

If available in Hex, the package can be installed as:

  1. Add extatic to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:extatic, "~> 0.2.0"}]
end
```
  1. Ensure extatic is started before your application:
```elixir
def application do
  [applications: [:extatic]]
end
```

Configuration

With extatic_datadog

 config :extatic, :metrics, %{
 reporter: Extatic.Reporters.Metrics.Datadog,
 interval: 10,
 config: %{
   url: "https://app.datadoghq.com/api/v1/series",
   api_key: "nope",
   host: "www.example.com"
   }
 }

 config :extatic, :events, %{
   reporter: Extatic.Reporters.Events.Datadog,
   interval: 10,
   config: %{
     url: "https://app.datadoghq.com/api/v1/events",
     api_key: "nope",
     host: "www.example.com"
   }
 }

or (with extatic_console)

 config :extatic, :metrics, %{
   reporter: Extatic.Reporters.Metrics.Console,
   interval: 10,
   config: %{}
 }
 config :extatic, :events, %{
   reporter: Extatic.Reporters.Events.Console,
   interval: 10,
   config: %{}
 }

or a combination.

Providers

Extatic Console

Outputs metrics and errors to the console (it's not pretty but helps when implementing monitoring in development

Extatic Datadog

Send metrics and errors to datadog

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages