Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
negbie committed Jun 22, 2019
1 parent 1a07492 commit 41896cd
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 4 deletions.
66 changes: 63 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,69 @@
# ngcp-cdr-db
Is a simple program which scans a configurable folder for new sipwise cdr's and sends them as a batch to timescaledb.

## Init Container
## Init
```bash
cd docker
sudo docker-compose up -d
```
Download ngcp-cdr-db from releases or compile it. Run it with the flags you need.

## Use
login with superset/superset
## Usage
go to localhost:8088
login with superset/superset

## Flags
```bash
Use with ./ngcp-cdr-db
-cdrdbhost
Change value of CDRDBHost. (default localhost)
-cdrdbname
Change value of CDRDBName. (default vmess)
-cdrdbpass
Change value of CDRDBPass. (default root)
-cdrdbport
Change value of CDRDBPort. (default 5432)
-cdrdbrotate
Change value of CDRDBRotate. (default 3 months)
-cdrdbschema
Change value of CDRDBSchema. (default public)
-cdrdbtable
Change value of CDRDBTable. (default ngcp_cdr)
-cdrdbuser
Change value of CDRDBUser. (default root)
-configfile
Change value of ConfigFile. (default ./ngcp-cdr-db.toml)
-csvbatchsize
Change value of CSVBatchSize. (default 500)
-csvcopyopts
Change value of CSVCopyOpts. (default CSV HEADER)
-csvqueuesize
Change value of CSVQueueSize. (default 20000)
-csvsplitchar
Change value of CSVSplitChar. (default ,)
-csvtimecolumn
Change value of CSVTimeColumn. (default start_time)
-csvtimeformat
Change value of CSVTimeFormat. (default 2006-01-02 15:04:05.999)
-dryrun
Change value of DryRun. (default false)
-logdbg
Change value of LogDbg.
-loglvl
Change value of LogLvl. (default info)
-logstd
Change value of LogStd. (default false)
-logsys
Change value of LogSys. (default false)
-version
Change value of Version. (default false)
-watchfolder
Change value of WatchFolder. (default ./example/rated)
-watchmaxevent
Change value of WatchMaxEvent. (default 30)
-watchrecursive
Change value of WatchRecursive. (default false)
-watchtime
Change value of WatchTime. (default 5s)

```
2 changes: 1 addition & 1 deletion cmd/ngcp-cdr-db/ngcp-cdr-db.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/negbie/ngcp-cdr-db/scan"
)

const version = "0.1"
const version = "0.8"

type processor interface {
Run()
Expand Down

0 comments on commit 41896cd

Please sign in to comment.