Bleemeo is a Cloud based monitoring solution. This cookbook deploys the agent on servers you want to monitor. Free trial is available at https://bleemeo.com/trial
This cookboot is a community contribution and is not officially supported.
- Ubuntu 16.04
- Debian 8
- Centos 7.3
- Fedora 24
node['bleemeo']['account']
ID of the account to connect node to.
node['bleemeo']['key']
Registration key to allow node to register.
node['bleemeo']['auto-upgrade']
Define version strategy, will upgrade automatically if true or stick to the same version.
default to false
node['bleemeo']['tags']
List of tags for the agent. Your agent will be tagged with those tags on Bleemeo Cloud Platform.
Only create associated configuration file if bleemeo::configure
is ran.
default to ['chef-client']
node['bleemeo']['stack']
Default services stack for the agent.
Only create associated configuration file if bleemeo::configure
is ran.
default to nil
node['bleemeo']['file_prefix']['service']
Default services configuration files prefix.
default to 90
node['bleemeo']['file_prefix']['metric']
Default metrics configuration files prefix.
default to 91
node['bleemeo']['file_prefix']['thresholds']
Default thresholds configuration files prefix.
default to 92
node['bleemeo']['file_prefix']['tags']
Default tags configuration files prefix.
default to 99
Include bleemeo
in your node's run_list
:
{
"run_list": [
"recipe[bleemeo::default]"
],
"normal": {
"bleemeo": {
"account": "YOUR_ACCOUNT_ID",
"key": "YOUR_REGISTRATION_KEY"
}
},
}
Install and configure Bleemeo agent from repositories
Install Bleemeo agent's repositories, included in bleemeo::install
.
Create default Bleemeo agent's configuration folder and files, included in bleemeo::install
.
Define a tcp custom check
bleemeo_tcp_check 'name' do
id String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
port Integer # required
address String # default to 127.0.0.1
stack String # default to nil
end
Define a http(s) custom check
bleemeo_http_check 'name' do
id String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
tls [TrueClass, FalseClass] # default to false
port Integer # required
address String # default to 127.0.0.1
path String # default to /
status_code Integer
stack String # default to nil
end
Define a nagios custom check
bleemeo_nagios_check 'name' do
id String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
command String # required
stack String # default to nil
end
Define a custom poll metric.
bleemeo_pull_metric 'name' do
id String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
url String # required
item [String, nil]
ssl_check [TrueClass, FalseClass] # default to true
username [String, nil]
password [String, nil]
end
Define a custom prometheus endpoint.
bleemeo_prometheus_endpoint 'name' do
id String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
url String # required
end
Define default threshold for specified metric, overwritten by Bleemeo cloud platform.
bleemeo_prometheus_endpoint 'name' do
metric String # default to 'name' if not specified
file_prefix Integer # configuration file prefix
low_critical Integer
low_warning Integer
high_warning Integer
high_critical Integer
end
Set prostgresql monitoring configuration
bleemeo_postgresql 'name' do
file_prefix Integer # configuration file prefix
username String # required
password String # required
port Integer # default to 5432
address String # default to 127.0.0.1
stack String # default to nil
end
Install gems from Gemfile :
bundler install
Foodcritic :
foodcritic .
Rubocop
rubocop -D
Require vagrant and virtualbox.
Run tests : kitchen test
Copyright 2017 Matlo