An open API service indexing awesome lists of open source software.

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.

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)