88 lines
2.0 KiB
JSON
88 lines
2.0 KiB
JSON
{
|
|
"name": "Mini-Mon",
|
|
"description": "Sets up the entire monitoring stack on one box",
|
|
"json_class": "Chef::Role",
|
|
"default_attributes": {
|
|
"apt": {
|
|
"periodic_update_min_delay": 60
|
|
},
|
|
"influxdb": {
|
|
"config": {
|
|
"logging": {
|
|
"file": "/opt/influxdb/shared/influxdb.log"
|
|
},
|
|
"raft": {
|
|
"port": 9090
|
|
}
|
|
}
|
|
},
|
|
"java": {
|
|
"install_flavor": "openjdk",
|
|
"jdk_version": "7"
|
|
},
|
|
"kafka": {
|
|
"listen_address": "192.168.10.4",
|
|
"topics": {
|
|
"metrics": { "replicas": 1, "partitions": 4 },
|
|
"events": { "replicas": 1, "partitions": 4 },
|
|
"alarm-state-transitions": { "replicas": 1, "partitions": 4 },
|
|
"alarm-notifications": { "replicas": 1, "partitions": 4 }
|
|
}
|
|
},
|
|
"percona": {
|
|
"backup": {
|
|
"password": "password"
|
|
},
|
|
"cluster": {
|
|
"package": "percona-xtradb-cluster-56"
|
|
},
|
|
"main_config_file": "/etc/mysql/my.cnf",
|
|
"server": {
|
|
"bind_address": "0.0.0.0",
|
|
"replication": {
|
|
"password": "password"
|
|
},
|
|
"root_password": "password",
|
|
"skip_name_resolve": true
|
|
}
|
|
},
|
|
"storm": {
|
|
"nimbus": {
|
|
"host": "127.0.0.1"
|
|
},
|
|
"ui": {
|
|
"port": "8088"
|
|
},
|
|
"zookeeper": {
|
|
"quorum": [
|
|
"127.0.0.1"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"override_attributes": {
|
|
},
|
|
"chef_type": "role",
|
|
"run_list": [
|
|
"recipe[mini-mon]",
|
|
"recipe[percona::cluster]",
|
|
"recipe[mini-mon::mysql_schema]",
|
|
"recipe[zookeeper]",
|
|
"recipe[kafka]",
|
|
"recipe[kafka::create_topics]",
|
|
"recipe[mini-mon::postfix]",
|
|
"recipe[monasca_notification]",
|
|
"recipe[influxdb]",
|
|
"recipe[mini-mon::influxdb]",
|
|
"recipe[sysctl]",
|
|
"recipe[mon_persister]",
|
|
"recipe[mon_api]",
|
|
"recipe[storm::nimbus]",
|
|
"recipe[storm::supervisor]",
|
|
"recipe[mon_thresh]",
|
|
"recipe[mon_agent]"
|
|
],
|
|
"env_run_lists": {
|
|
}
|
|
}
|