Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

albert-io/telemetry_metrics_appsignal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TelemetryMetricsAppsignal

CircleCI

A Telemetry.Metrics reporter that pushes metrics to AppSignal. Requires the AppSignal library to be installed and configured.

Installation

Add telemetry_metrics_appsignal to your mix.exs file:

def deps do
  [
    {:telemetry_metrics_appsignal, "~> 0.1.0"}
  ]
end

Usage

Once you've configured the AppSignal library, you can define the metrics you want to collect:

defp metrics do
  [
    [
      counter("web.request.count"),
      last_value("worker.queue.length"),
      sum("worker.events.consumed"),
      summary("db.query.duration")
    ]
  ]
end

Then attach them to the AppSignal reporter, probably in your application.ex file:

TelemetryMetricsReporter.attach(metrics())

About

An AppSignal reporter for Telemetry.Metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%