Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RabbitMQ and Metrics #358

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
bf07478
Merge pull request #9 from StackStorm/master
bishopbm1 Aug 31, 2021
218b168
Merge pull request #11 from StackStorm/master
bishopbm1 Oct 27, 2021
0f3b898
Added params for metrics section in config file
bishopbm2 Oct 27, 2021
233e8df
Adding route to /basic_status to get stub_status metrics from nginx
asktheaxis Nov 10, 2021
d497ab6
removing extra spaces
asktheaxis Nov 10, 2021
92f4804
Adding resource location for nginx stub status module
asktheaxis Nov 10, 2021
0819c46
syntax fixes
asktheaxis Nov 10, 2021
1ee4a47
removing index.html from index_files
asktheaxis Nov 10, 2021
f76a11d
removing more copy/paste errors (www_root)
asktheaxis Nov 10, 2021
ce5fdc6
adding nginx basic_status port to init. updating CHANGELOG and metadata
asktheaxis Nov 17, 2021
f145814
Fixing syntax
bishopbm2 Nov 23, 2021
b862bd2
Fixing input
bishopbm2 Nov 23, 2021
062831b
Fixing type
bishopbm2 Nov 23, 2021
1948db6
Fixing tests
bishopbm2 Nov 23, 2021
3481e6e
Merge pull request #12 from EncoreTechnologies/feature/metric-conf
bishopbm1 Nov 23, 2021
2f1207a
Merge branch 'master' of https://github.com/StackStorm/puppet-st2 int…
bishopbm2 Apr 26, 2022
c13ef3a
Merge pull request #14 from EncoreTechnologies/feature/update-master
bishopbm1 Apr 26, 2022
7b7b055
Added metrics to its own file. Fixed RabbitMQ errors. Fixed failing a…
bishopbm1 May 20, 2022
9d05525
Pinning erlang to the 24 for rhel 8
bishopbm1 May 20, 2022
2083d40
Removed fix and RabbitMQ pushed a new package.
bishopbm1 May 20, 2022
dc775f6
Added metrics to its own file. Fixed RabbitMQ errors. Fixed failing a…
bishopbm1 May 20, 2022
d757e56
Merge https://github.com/StackStorm/puppet-st2 into feature/rabbitmq-…
bishopbm1 May 20, 2022
3bb372f
Adding comments to code and and override for the basic status report.
bishopbm1 May 23, 2022
9e199d7
Merge branch 'feature/rabbitmq-updates' into hotfix/testing-updates
bishopbm1 May 23, 2022
43e04e7
attempting to fix tests.
bishopbm1 May 23, 2022
906cbcb
Fixing tests.
bishopbm1 May 23, 2022
56878e8
Fixing syntax issue.
bishopbm1 May 23, 2022
0d1cd03
Removing params.
bishopbm1 May 23, 2022
0434c62
Down to only 8 failing tests.
bishopbm1 May 23, 2022
3d2defb
moving basic status to its own test since not enabled by default.
bishopbm1 May 23, 2022
9415cc2
Switching builds to upstream.
bishopbm1 May 27, 2022
0a4faf2
Updated readme with new metrics parameters and how those can be used.…
bishopbm1 Jun 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
matrix:
include:
# note: actions/setup-python only allows using a major.minor releases
- python: '3.6'
- python: '3.8'
make_target: 'python3'
name: 'bolt tasks'
steps:
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
- ruby: '2.7'
name: 'centos7-puppet7'
- ruby: '2.7'
name: 'centos7-puppet7-python36'
name: 'centos7-puppet7-python38'
- ruby: '2.7'
name: 'ubuntu18-puppet6'
- ruby: '2.7'
Expand Down
4 changes: 2 additions & 2 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ platforms:
puppetfile_path: build/centos7-puppet7/Puppetfile

# CentOS7 with Systemd - Puppet 7 - Python 3.6
- name: centos7-puppet7-python36
- name: centos7-puppet7-python38
driver:
platform: centos
dockerfile: build/centos7-puppet7/Dockerfile.kitchen
Expand All @@ -71,7 +71,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/centos7-puppet7/Puppetfile
manifest: test/fullinstall_python36.pp
manifest: test/fullinstall_python38.pp

# Ubuntu Bionic with Systemd - Puppet 6
- name: ubuntu18-puppet6
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Development

- Added the ability to manage StackStack metrics giving options for the metric driver,
host and port number defined in st2.conf. Contributed by @bishopbm1

- Added nginx web route to get basic nginx metrics. Contributed by @asktheaxis

- Fixed issues with RabbitMQ @bishopbm1

- Fixed and updated all tests @bishopbm1

## 2.4.0 (Mar 1, 2022)

- Update RabbitMQ installer to use latest Erlang from RabbitMQ repos. Contributed by @rush-skills
Expand Down
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ Hiera data bindings. A few notable parameters to take note of:
being taken (proper steps detailed here: https://docs.stackstorm.com/install/upgrades.html)
* `st2::python_version` - Version to Python to use. The default is `'system'` and the
system `python` package will be installed, whatever version that is for your OS.
To explicitly install Python 3.6 specify `'3.6'` if on RHEL/CentOS 7.
If on Ubuntu 16.04 specify `'python3.6'`.
To explicitly install Python 3.8 specify `'3.8'` if on RHEL/CentOS 7.
If on Ubuntu 16.04 specify `'python3.8'`.
**Notes**
* RHEL 7 - The Red Hat subscription repo `'rhel-7-server-optional-rpms'`
will need to be enabled prior to running this module.

```puppet
# CentOS/RHEL 7
class { 'st2':
python_version => '3.6',
python_version => '3.8',
}

# Ubuntu 18.04/20.04
class { 'st2':
python_version => 'python3.6',
python_version => 'python3.8',
}

contain st2::profile::fullinstall
Expand All @@ -161,6 +161,7 @@ classes for use and configuration.
* `st2::proflle::server` - st2 server components
* `st2::profile::web` - st2 web components
* `st2::profile::chatops` - st2 chatops components
* `st2::profile::metrics` - st2 set up metrics

#### Installing and Configuring Packs

Expand Down Expand Up @@ -331,7 +332,7 @@ that can be higher on CPU and Memory to allow more processes to run at the same
Configuration all services:
```ruby
class { 'st2':
python_version => '3.6',
python_version => '3.8',
workflowengine_num => 4,
scheduler_num => 2,
rulesengine_num => 1,
Expand Down Expand Up @@ -466,6 +467,24 @@ $res = run_task('st2::key_get', $stackstorm_target,
password => $password)
```

#### Metrics

This module provides the ability to set up the metrics endpoints to expose different metrics built into StackStorm as documented here:
https://docs.stackstorm.com/reference/metrics.html

There is also an addition metric that can be auto created which exposes the basic health for NGINX called a basic status page.

```ruby
class { 'st2':
python_version => '3.8',
metrics_include => true,
nginx_basicstatus_enabled => true,
}
```

Once these metrics are setup and enabled it gives the ability to scrape those metrics with an outside source like telegraf
or prometheus or any other scraping tool.

## Limitations

### Supported platforms
Expand Down
9 changes: 7 additions & 2 deletions build/centos7-puppet6/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
rush-skills marked this conversation as resolved.
Show resolved Hide resolved
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
9 changes: 7 additions & 2 deletions build/centos7-puppet7/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
9 changes: 7 additions & 2 deletions build/ubuntu18-puppet6/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
9 changes: 7 additions & 2 deletions build/ubuntu18-puppet7/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
9 changes: 7 additions & 2 deletions build/ubuntu20-puppet6/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
9 changes: 7 additions & 2 deletions build/ubuntu20-puppet7/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
# └── saz-sudo (v6.0.0)
forge "https://forgeapi.puppetlabs.com"

mod 'ghoneycutt-facter'
# Current bug: https://github.com/ghoneycutt/puppet-module-facter/issues/70
# in latest release. Pinning to 3.5 until resolved.
mod 'ghoneycutt/facter', '3.5.0'
mod 'jamtur01-httpauth'
mod 'npwalker-recursive_file_permissions'
mod 'puppet-epel'
Expand All @@ -55,7 +57,10 @@ mod 'puppet-nginx'
mod 'puppetlabs-concat' # dependency of puppet-nginx'
mod 'puppet-nodejs'
mod 'puppet-python'
mod 'puppet-rabbitmq'
# Using master branch due to new release on hold pending new tests.
mod 'puppet/rabbitmq',
:git => 'https://github.com/voxpupuli/puppet-rabbitmq.git',
:branch => 'master'
mod 'camptocamp-systemd' # dependency of puppet-rabbitmq
mod 'puppet-archive' # dependency of puppet-rabbitmq
mod 'puppet-selinux'
Expand Down
Loading