Skip to content

replaygaming/go-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game metrics service

Build Status Coverage Status

Translates Replay Poker events and forward them to 3rd-party APIs

Integrations supported

Usage

Get the latest binary for your distribution

./bin/metrics_linux_amd64 -h

Usage of ./bin/metrics_linux_amd64:
  -amplitude-api-key string
        Amplitude API Key
  -amqp-queue string
        AMQP Queue name (default "metrics")
  -amqp-url string
        AMQP URL (default "amqp://guest:guest@localhost:5672/metrics")
        

Configure RabbitMQ

Install rabbitmq and rabbitmqadmin

Download and installation guide from RabbitMQ site. rabbitmqadmin is binary, found as part of rabbitmq-management project.

Enable the management plugin:

[sudo] rabbitmq-plugins enable rabbitmq_management

Then (re)start the rabbitmq daemon.

[sudo] sudo rabbitmqctl stop
[sudo] rabbitmq-server -detached

Declare the host and exchange for the metrics

rabbitmqadmin declare vhost name=metrics
rabbitmqadmin declare permission vhost=metrics user=guest configure=".*" write=".*" read=".*"
rabbitmqadmin -V metrics declare exchange name=metrics_ex type=fanout durable=true

Contribuing

Install go

Follow the instructions at Golang.org. DO NOT install using your distro pkg manager.

Get project dependencies

go get .

Running

go build
./go-metrics