Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing predefined exometer Reports, e.g. erlang memory #71

Open
cblock opened this issue Feb 7, 2017 · 1 comment
Open

Accessing predefined exometer Reports, e.g. erlang memory #71

cblock opened this issue Feb 7, 2017 · 1 comment
Assignees
Labels

Comments

@cblock
Copy link

cblock commented Feb 7, 2017

Hi!

I'm just wondering how I might access predefined exomter reports. I tried to add a predefined section to the config but that didn't work:

# Configure Elixometer Instrumentation
config(:exometer_core,
report: [
  reporters: [
    {:exometer_report_tty, []}
  ]
],
predefined: [
  {
    ~w(erlang memory)a,
    {:function, :erlang, :memory, [], :proplist, ~w(atom binary ets processes total)a},
    []
  },
  {
    ~w(erlang statistics)a,
    {:function, :erlang, :statistics, [:'$dp'], :value, [:run_queue]},
    []
  }
])
config(:elixometer, reporter: :exometer_report_tty,
    env: Mix.env,
    metric_prefix: "bms")
@smoak
Copy link
Contributor

smoak commented Apr 10, 2017

I think you need to subscribe to it:

config(:exometer_core,
report: [
  reporters: [
    {:exometer_report_tty, []}
  ],
  subscribers: [
    {
      :exometer_report_tty,
      [:erlang, :memory], ~w(atom binary ets processes total)a, 1_000, true
    }
  ]
],
# rest of config here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants