Skip to content

How to use exometer to monitor stock tick stream? #104

@jacktang

Description

@jacktang

Hello,

I am going to use exometer to monitor stock tick stream, InfluxDB acts as the backend database. And the table schema is designed as below:

time    stock_name       exchange    acc_count
----------------------------------------------
t1         appl             x         1029
t2         amzn             y          20
t3         appl             x         1043
t4         amzn             y          80 

And I create each metric for every stock

exometer:update_or_create([tick, StockName, Exchange], 1, counter, []).

My question is how can I write exometer_report:subscribe/6 method to send data back to influxdb described above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions