Skip to content

Generate custom metrics of your web application by catching custom events of users navigation

License

Notifications You must be signed in to change notification settings

victorspringer/metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metrics

Build Status

This is an under development API built with Elixir Phoenix and MySQL.

The purpose of this API is to allow you to generate custom metrics of your web application by catching custom events of users navigation.

Feedbacks and pull requests are very welcome!

Getting Started

First of all, you must have MySQL installed and change the database connection settings accordingly to your own configuration at /config.

To start the API server:

  • Install dependencies with mix deps.get
  • Create and migrate the database with mix ecto.create && mix ecto.migrate
  • Start Phoenix endpoint with mix phoenix.server

Ready to run in production? Please check the deployment guides.

Data insertion format

Here is an example of a post request sent via JavaScript:

const xhr = new XMLHttpRequest();
xhr.open('POST', 'https://localhost:4000/v1/events', true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
  event: {
    project:  'zion',
    version:  'dev',
    brand:    'americanas',
    source:   'teste',
    side:     'local',
    channel:  'channel',
    device:   'mobile',
    route:    '/teste',
    type:     'aggregation:click',
    value:    '1'
  }
}));

About

Generate custom metrics of your web application by catching custom events of users navigation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages