puma-plugin-statsd 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61b91a8a6e85cc308cb83a047ddbf958a2529363433689f3b7a407658982c9aa
4
- data.tar.gz: d62ab03d1fe3c20dc13a395ba84fa5fe035183f17dec401a85217a20221a43b5
3
+ metadata.gz: 0b3cd5c0412cc60e11ea2d99dbf080b9ffe81054b8a4d8c8bfa2c7279d8e921b
4
+ data.tar.gz: 7d9345141eab89e4c2b0b6a0ed66fecabaaa1fea80e039d050593cbba42bd695
5
5
  SHA512:
6
- metadata.gz: '09e931680b3c4280e1764fc9738ab69e7b0af6c0705eb02d52edc6ba9df69d227293075d77abbedb8e794337e99ae3d048abe8f76413ec9ed02a7c526494fe3c'
7
- data.tar.gz: 6eb107be17c9b457dc0c7bb900867dab42dcd50fd49e27df919e6268e648a6a0c858a422f9545d9280e001f825db0ceb0eae4a333b705adc5ccb5b3c25f4b0e8
6
+ metadata.gz: 86bb26d1b1af5b213380b4e7be6ec51f5fb216175304d3d78f36010afd4bfd3b7c37aaed877d84277ef88c9f504792f408ec6d287a0d8a06671154398965231f
7
+ data.tar.gz: 2b8b0b0d0b1d4902b0ef7114b19adb8f31dd1206dc9185248f3008edb074f118976f56554f5b34689c43f3b12ef069ec2c5a773c9a50b1b16e84bffc4e00b3e3
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.0 2021-01-03
4
+
5
+ * Assume localhost for statsd host (PR #[20](https://github.com/yob/puma-plugin-statsd/pull/20))
6
+
3
7
  ## 1.0.0 2020-11-03
4
8
 
5
9
  * Added option to specify arbitrary datadog tags (PR #[18](https://github.com/yob/puma-plugin-statsd/pull/18))
data/README.md CHANGED
@@ -37,12 +37,14 @@ plugin :statsd
37
37
 
38
38
  ## Usage
39
39
 
40
- Ensure you have an environment variable set that points to a statsd host, then boot your puma app as usual. Optionally you may specify a port (default is 8125).
40
+ By default the plugin assumes statsd is available at 127.0.0.1. If that's true in your environment, just start puma like normal:
41
41
 
42
42
  ```
43
- STATSD_HOST=127.0.0.1 bundle exec puma
43
+ bundle exec puma
44
44
  ```
45
45
 
46
+ If statsd isn't on 127.0.0.1 or the port is non-standard, you can configure them using optional environment variables:
47
+
46
48
  ```
47
49
  STATSD_HOST=127.0.0.1 STATSD_PORT=9125 bundle exec puma
48
50
  ```
@@ -55,7 +57,6 @@ the datadog "dogstatsd" server.
55
57
  Should you be reporting the puma metrics to a dogstatsd server, you can set
56
58
  tags via the following three environment variables.
57
59
 
58
-
59
60
  #### DD_TAGS
60
61
 
61
62
  `DD_TAGS`: Set this to a space-separated list of tags, using the
@@ -12,7 +12,7 @@ class StatsdConnector
12
12
  attr_reader :host, :port
13
13
 
14
14
  def initialize
15
- @host = ENV.fetch(ENV_NAME, nil)
15
+ @host = ENV.fetch(ENV_NAME, "127.0.0.1")
16
16
  @port = ENV.fetch("STATSD_PORT", 8125)
17
17
  end
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-plugin-statsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2021-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -114,7 +114,7 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
- description:
117
+ description:
118
118
  email: james@yob.id.au
119
119
  executables: []
120
120
  extensions: []
@@ -128,7 +128,7 @@ homepage: https://github.com/yob/puma-plugin-statsd
128
128
  licenses:
129
129
  - MIT
130
130
  metadata: {}
131
- post_install_message:
131
+ post_install_message:
132
132
  rdoc_options: []
133
133
  require_paths:
134
134
  - lib
@@ -143,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.0.3
147
- signing_key:
146
+ rubygems_version: 3.2.3
147
+ signing_key:
148
148
  specification_version: 4
149
149
  summary: Send puma metrics to statsd via a background thread
150
150
  test_files: []