Skip to content

Commit

Permalink
Merge branch 'master' into add-redis-healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
callumknights authored Jan 12, 2021
2 parents 59914b6 + 50c5320 commit 9868400
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

* Add new Redis healthcheck and relevant tests (https://github.com/alphagov/govuk_app_config/pull/183)

# 2.8.2

* Allow apps to configure the host and protocol for Statsd ([#180](https://github.com/alphagov/govuk_app_config/pull/180)

# 2.8.1

* Add `GdsApi::ContentStore::ItemNotFound` to `data_sync_excluded_exceptions` (https://github.com/alphagov/govuk_app_config/pull/178)
Expand Down
2 changes: 1 addition & 1 deletion govuk_app_config.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "logstasher", ">= 1.2.2", "< 2.2.0"
spec.add_dependency "sentry-raven", "~> 3.1.1"
spec.add_dependency "statsd-ruby", "~> 1.4.0"
spec.add_dependency "statsd-ruby", "~> 1.5.0"
spec.add_dependency "unicorn", ">= 5.4", "< 5.9"

spec.add_development_dependency "byebug"
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_app_config/govuk_statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module GovukStatsd

def self.client
@client ||= begin
statsd_client = ::Statsd.new("localhost")
statsd_client = ::Statsd.new(ENV["GOVUK_STATSD_HOST"] || "localhost", 8125, ENV["GOVUK_STATSD_PROTOCOL"]&.to_sym || :udp)
statsd_client.namespace = ENV["GOVUK_STATSD_PREFIX"].to_s
statsd_client
end
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_app_config/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GovukAppConfig
VERSION = "2.8.1".freeze
VERSION = "2.8.2".freeze
end

0 comments on commit 9868400

Please sign in to comment.