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

Update rabbitmq_exporter to version 0.29.0 #453

Merged
merged 3 commits into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ prometheus::rabbitmq_exporter::package_ensure: 'latest'
prometheus::rabbitmq_exporter::package_name: 'rabbitmq_exporter'
prometheus::rabbitmq_exporter::service_name: 'rabbitmq_exporter'
prometheus::rabbitmq_exporter::user: 'rabbitmq-exporter'
prometheus::rabbitmq_exporter::version: '0.25.2'
prometheus::rabbitmq_exporter::version: '0.29.0'
prometheus::rabbitmq_exporter::rabbit_url: 'http://localhost:15672'
prometheus::rabbitmq_exporter::rabbit_user: 'guest'
prometheus::rabbitmq_exporter::rabbit_password: 'guest'
Expand Down
66 changes: 66 additions & 0 deletions spec/acceptance/rabbitmq_exporter_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
require 'spec_helper_acceptance'

describe 'prometheus rabbitmq_exporter' do
it 'rabbitmq_exporter works idempotently with no errors' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe 'prometheus rabbitmq_exporter version 0.25.2' do
it 'rabbitmq_exporter installs with version 0.25.2' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
version => '0.25.2',
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe service('rabbitmq_exporter') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end

describe port(9090) do
it { is_expected.to be_listening.with('tcp6') }
end
end

describe 'prometheus rabbitmq_exporter version 0.29.0' do
it 'rabbitmq_exporter installs with version 0.29.0' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
version => '0.29.0',
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe service('rabbitmq_exporter') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end

describe port(9090) do
it { is_expected.to be_listening.with('tcp6') }
end
end
end