xerions / metricman

9 stars 4 forks source link

Uptime metric not working #28

Open kansi opened 7 years ago

kansi commented 7 years ago

I added the following to my predefined list in the exometer_config:

{[:erlang, :beam, :uptime], {:function, Metricman, :update_uptime, [], :proplist, [:value]}, []}

and I subscribe to the same in my subscribers list as follows:

{:exometer_report_influxdb, [:erlang, :beam, :uptime], [:value], poll_interval, []}

but I keep getting the following lager warning,

11:01:28.968 [warning] Metric([erlang,beam,uptime]) Datapoint([value]) not found. Will not try again

In effect the metric is not pushed to InfluxDB. Other metric from the config.exs work fine.

surik commented 7 years ago

What is your pool_interval and can you say exometer_core revision from your mix.lock?

kansi commented 7 years ago

pool_interval: 3_000 exometer_core version 1.4.0

surik commented 7 years ago

Try exomete_core from master. This change, probably, not available in 1.4.0.

kansi commented 7 years ago

I already have added that change to my current exometer_core dependency but it still gives the same issue.

surik commented 7 years ago

Can you provide a small demo?

kansi commented 7 years ago

That will take a little bit of time to setup. Will post back the link to git repo here.