https://github.com/synw/hitsmon
Hits monitoring service
https://github.com/synw/hitsmon
Last synced: 2 months ago
JSON representation
Hits monitoring service
- Host: GitHub
- URL: https://github.com/synw/hitsmon
- Owner: synw
- License: mit
- Created: 2017-06-23T11:07:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T13:40:16.000Z (almost 8 years ago)
- Last Synced: 2025-02-19T12:51:12.496Z (3 months ago)
- Language: Go
- Size: 3.83 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```javascript
{
"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
```bash
./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](https://github.com/synw/django-hitsmon)