synw / hitsmon

Hits monitoring service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hitsmon

A service that pick hits from Redis and save them into a database. Principle: the hits are stored into Redis by some external process. The Hitsmon collector will save these into a database and clean the Redis keys at a fixed interval.

Supported databases

  • Postgresql
  • Influxdb
  • Rethinkdb

Configuration

{
 "type": "influxdb",
 "addr":"http://localhost:8086",
 "user":"admin",
 "password":"admin",
 "db": "hits",
 "table": "hits",
 "domain": "localhost",
 "frequency": 1
}

Frequency is the interval between the runs to save the data: 1 means the process will run every second.

Run

./hitsmon -v=1

-v is the verbosity level. Default is 0 which will output nothing

Input sources

Django middleware to save hits into Redis: django-hitsmon

About

Hits monitoring service

License:MIT License


Languages

Language:Go 100.0%