https://github.com/vacovsky/poolse-cookbook
Installs and configures Poolse (https://github.com/vacoj/poolse) using Chef.
https://github.com/vacovsky/poolse-cookbook
centos chef docker golang http monitoring poolse
Last synced: 7 months ago
JSON representation
Installs and configures Poolse (https://github.com/vacoj/poolse) using Chef.
- Host: GitHub
- URL: https://github.com/vacovsky/poolse-cookbook
- Owner: vacovsky
- Created: 2017-05-21T00:15:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T20:38:35.000Z (over 8 years ago)
- Last Synced: 2025-03-26T02:43:07.878Z (11 months ago)
- Topics: centos, chef, docker, golang, http, monitoring, poolse
- Language: Ruby
- Homepage: http://poolse.vacovsky.us
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poolse cookbook
### Installs Poolse (https://github.com/vacoj/poolse), a healthcheck dashboard for http endpoints.
After successful run of the cookbook, poolse will be available on the default port of 5704, unless changed in the attributes/default.rb file.
#### Attributes
``` ruby
# an array of target endpoints for monitoring. See poolse documentation for further options.
default['poolse']['targets'] = [
{
endpoint: 'http://poolse.vacovsky.us/',
polling_interval: 10,
expected_status_code: 200,
up_count_threshold: 5,
down_count_threshold: 1
},
{
endpoint: 'http://google.com/',
polling_interval: 10,
expected_status_code: 301,
up_count_threshold: 5,
down_count_threshold: 1
}
]
# custom settings for poolse. "http_port" is the port poolse web interface will be exposed.
default['poolse']['settings'] = {
http_port: '5704',
debug: false,
show_http_log: false,
state_file_name: 'state.dat',
persist_state: true,
startup_state: true
}
# name of binary to use from within the poolse repository. This will be an auto-detected field when I get around to it
default['poolse']['remote_bin'] = 'poolse_x64'
# repository hosting the poolse code
default['poolse']['repo'] = 'https://github.com/vacoj/poolse.git'
# root direcotry to clone the poolse source into.
default['poolse']['install_loc'] = '/opt/'
```
#### Tested with:
- docker centos image
- vagrant centos/7 image
Poolse can be found here: Poolse (https://github.com/vacoj/poolse)