puma-plugin-statsd 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/puma/plugin/statsd.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ae9c9480d1241bd90b7a2b0deb90b48e5effd7c48e85131db1c76b67a58934d
|
|
4
|
+
data.tar.gz: 1037c175245a0f94d4c73e8531cf8de04e619840516fc00a910353933bf44172
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f69cf9f81b61a53aeb195b8f3706232e2793a0bc365c654b2a8338573c10e6ff0ca7e6ecf39651d128c5929111ef350bd3284c5f22d1d15bf5560d807b90e15
|
|
7
|
+
data.tar.gz: 9c5b0671b4c9e62c790b1e534e11990b93542f56e8da9b42ab050bc007c631ac961b2d66d99d05d7ab3a8b7bd2a1113200ec439306e1f937ff8c97c2c3f342e9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.3.0 2022-11-26
|
|
4
|
+
|
|
5
|
+
* Support the origin detection over UDP from Datadog via DD_ENTITY_ID env var
|
|
6
|
+
|
|
3
7
|
## 2.2.0 2022-07-31
|
|
4
8
|
|
|
5
9
|
* Support communicating with the Datadog agent via a UNIX socket (set STATSD_SOCKET_PATH env var) (PR #[38](https://github.com/yob/puma-plugin-statsd/pull/38))
|
data/lib/puma/plugin/statsd.rb
CHANGED
|
@@ -163,6 +163,14 @@ Puma::Plugin.create do
|
|
|
163
163
|
tags << "version:#{ENV["DD_VERSION"]}"
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
+
# Support the origin detection over UDP from Datadog, it allows DogStatsD
|
|
167
|
+
# to detect where the container metrics come from, and tag metrics automatically.
|
|
168
|
+
#
|
|
169
|
+
# https://docs.datadoghq.com/developers/dogstatsd/?tab=kubernetes#origin-detection-over-udp
|
|
170
|
+
if ENV.has_key?("DD_ENTITY_ID")
|
|
171
|
+
tags << "dd.internal.entity_id:#{ENV["DD_ENTITY_ID"]}"
|
|
172
|
+
end
|
|
173
|
+
|
|
166
174
|
# Return nil if we have no environment variable tags. This way we don't
|
|
167
175
|
# send an unnecessary '|' on the end of each stat
|
|
168
176
|
return nil if tags.empty?
|
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: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Healy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: puma
|