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

Conversation

bishopbm1
Copy link
Collaborator

Added Metrics configuration options to to setup and configure metrics endpoint needed for metrics collection. Will be using this and adding documentation on setting up Prometheus.

RabbitMQ and erlang changes the repository styles so added some configuration options so if they change again we can more easily update. PackageCloud documentation:
https://packagecloud.io/rabbitmq/erlang/install#bash-rpm
https://packagecloud.io/install/repositories/rabbitmq/erlang/config_file.repo?os=rhel&dist=8&source=script

Relies on the folllowing PR for additional fixes:
voxpupuli/puppet-rabbitmq#907
While waiting for that to be merged this repo and branch can be used:
https://github.com/EncoreTechnologies/puppet-rabbitmq/tree/feature/fix-yum-repo
This repo and branch will remain until the PR is merged.

Error:

Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install rabbitmq-server' returned 1: Importing GPG key 0x4D206F89:
 Userid     : "https://packagecloud.io/rabbitmq/rabbitmq-server (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 8C69 5B02 19AF DEB0 4A05 8ED8 F4E7 8920 4D20 6F89
 From       : https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
Error: Failed to download metadata for repo 'rabbitmq_erlang': repomd.xml GPG signature verification error: Bad GPG signature
Error: /Stage[main]/Rabbitmq::Install/Package[rabbitmq-server]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install rabbitmq-server' returned 1: Importing GPG key 0x4D206F89:
 Userid     : "https://packagecloud.io/rabbitmq/rabbitmq-server (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 8C69 5B02 19AF DEB0 4A05 8ED8 F4E7 8920 4D20 6F89
 From       : https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
Error: Failed to download metadata for repo 'rabbitmq_erlang': repomd.xml GPG signature verification error: Bad GPG signature

bishopbm1 and others added 21 commits August 31, 2021 16:16
Added params for metrics section in config file
…nd incorrect tests. Updated tests to support new python version. Fixed all failing builds
…nd incorrect tests. Updated tests to support new python version. Fixed all failing builds
@CLAassistant
Copy link

CLAassistant commented May 20, 2022

CLA assistant check
All committers have signed the CLA.

@bishopbm1 bishopbm1 requested a review from rush-skills May 20, 2022 21:50
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge work here! 👍
Thanks a lot for the PR + fix.

It would be ideal to split the fix vs feature in separated PRs for better history, separation of concern, diff, and review.

I left a few comments, but up to @rush-skills to review & approve as Puppet is not my primary thing.

build/centos7-puppet6/Puppetfile Outdated Show resolved Hide resolved
build/centos7-puppet6/Puppetfile Outdated Show resolved Hide resolved
manifests/params.pp Show resolved Hide resolved
Copy link
Member

@rush-skills rush-skills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now, except failing tests

@rush-skills rush-skills self-requested a review May 23, 2022 08:53
@@ -149,6 +149,34 @@
},
tag: ['st2', 'st2::backend', 'st2::backend::api'])
end
it do
is_expected.to contain_nginx__resource__location('@basic_statusError')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these tests only run when the basic status page is enabled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea working on fixing the tests. I have a pretty busy day today though so it might have to wait till tomorrow.

@rush-skills
Copy link
Member

Thanks for fixing the tests - all looks green now after so long!
One question though, sorry for my lack of knowledge - what is the Nginx basis status supposed to proxy? Is it a health check service of st2, nginx or something custom?

Comment on lines 60 to 65
# Waiting on https://github.com/voxpupuli/puppet-rabbitmq/pull/907 to be
# merged into upstream repo.
mod 'puppet/rabbitmq',
:git => 'https://github.com/EncoreTechnologies/puppet-rabbitmq.git',
:branch => 'feature/fix-yum-repo',
:default_branch => 'master'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As voxpupuli/puppet-rabbitmq#907 was merged,
looks like we can rely on the official version now 👍

@bishopbm1
Copy link
Collaborator Author

@armab can you re-run tests. They all succeeded in my repo

@arm4b
Copy link
Member

arm4b commented Jun 7, 2022

@bishopbm1 Sure, let's see. Thanks for bumping this!

@rush-skills Is there anything else left addressing in this PR to move forward?

Copy link
Member

@rush-skills rush-skills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now if tests pass

@rush-skills
Copy link
Member

@bishopbm1 Can you also describe/document on the metrics and nginx_basic_status parts that you have added in here? Would love to try them out in my setup

@bishopbm1
Copy link
Collaborator Author

@bishopbm1 Can you also describe/document on the metrics and nginx_basic_status parts that you have added in here? Would love to try them out in my setup

Yea i'll throw something quick in the readme

@rush-skills
Copy link
Member

@bishopbm1 CI is all green again 🥳
I can go ahead with the merge, or wait for the README changes

… Also updated other pieces of documentation for python 3.8
@bishopbm1
Copy link
Collaborator Author

@rush-skills I added a simple description. I plan to build this out a lot more in coming month but that is definitely its own PR. If you message me in the ST2 channel I can help you with how we are scraping the data to get it to prometheus.

@rush-skills
Copy link
Member

@bishopbm1 Thanks, that helps keep the module docs still complete for that profile. I will merge this once CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants