TelemetryMetricsAppsignal

CircleCI Hex pm

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.1"}
  ]
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:

TelemetryMetricsAppsignal.attach(metrics())