{
// CGRateS Configuration file
//
// Used for cgradmin
// Starts rater, scheduler

"general": {
	"poster_attempts": 1,
	"failed_posts_ttl": "1",
},

"logger": {
	"level": 7
},

"rpc_conns": {
	"conn1": {
		"strategy": "*first",
		"conns": [{"address": "127.0.0.1:2013", "transport":"*gob"}],
	},
},

"listen": {
	"rpc_json": ":2012",			// RPC JSON listening address
	"rpc_gob": ":2013",			// RPC GOB listening address
	"http": ":2080",				// HTTP listening address
},


"db": {								// database used to store runtime data (eg: accounts, cdr stats)
	"db_conns": {
		"*default": {			// The id of the DB connection
			"db_type": "redis",	// db type: <internal|redis|mysql|mongo|postgres>
			"db_host": "127.0.0.1",
			"db_port": 6379, 	// db port to reach the database
			"db_name": "10", 	// db database name to connect to
			"db_user": "cgrates", 
		},
		"StorDB": {						 // The id of the DB connection
			"db_type": "mysql",			 // db type: <internal|redis|mysql|mongo|postgres>
			"db_host": "127.0.0.1",		 // the host to connect to
			"db_port": 3306, 			 // db port to reach the database
			"db_name": "cgrates", 		 // db database name to connect to
			"db_user": "cgrates", 		 // username to use when connecting to the database
			"db_password": "CGRateS.org" // password to use when connecting to the database
		},
	},
	"items": {
		"*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
	}
},

"cdrs": {
	"enabled": true,						// start the CDR Server service:  <true|false>
	"chargers_conns":["conn1"],
},

"chargers": {
	"enabled": true,
},


"thresholds": {
	"enabled": true,
	"store_interval": "1s",
},


"stats": {
	"enabled": true,
	"store_interval": "1s"
},

"ees": {
	"enabled": true,
	"exporters": [
		{
			"id": "sqs_fail",
			"type": "*sqsJSONMap",
			// export_path for sqs:  "endpoint"
			"export_path": "notAValidURL",
			"attempts": 1,
			"fields":[
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
			],
		},
		{
			"id": "kafka_fail",
			"type": "*kafkaJSONMap",
			"export_path": "notAValidURL",
			"attempts": 1,
			"fields":[
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
			],
		},
		{
			"id": "amqp_fail",
			"type": "*amqpJSONMap",
			"export_path": "notAValidURL",
			"attempts": 1,
			"fields":[
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
			],
		},
		{
			"id": "s3_fail",
			"type": "*s3JSONMap",
			"export_path": "notAValidURL",
			"attempts": 1,
			"fields":[
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
			],
		},
		{
			"id": "aws_fail",
			"type": "*amqpv1JSONMap",
			"export_path": "notAValidURL",
			"attempts": 1,
			"fields":[
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
			],
		},
	],
},


"admins": {
	"enabled": true,
	"ees_conns": ["*localhost"]
},


}
