metrist_ipa 0.5.0 → 0.6.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/README.md +5 -5
- data/lib/metrist_ipa/version.rb +1 -1
- data/lib/metrist_ipa.rb +2 -2
- 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: 5cf9c2dfc0f1016c7096610b5bd73c118689316fdf865c2d6869687ff342d663
|
|
4
|
+
data.tar.gz: a5724a759bff28bc3a2fde24b337ac19967e3b80de66f3275ef4675768bddad9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 821a28b8fafa28e99488cde898a2b3b3947576f52a1a3acb313c618a3243311db0b7c768c3dc97b908a125e0320ec0b0f011144e8e053dc2c22371cb925f3dab
|
|
7
|
+
data.tar.gz: f9e124bb380a348785d938a4f9c793af5a28eb4f945ce325c4a89ea801ad091919d86d8971a6af4dc6b583bfb5259f38d43a6ed9fa4e4afefaf3e7db4faf7a1d
|
data/README.md
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
This Rails Plugin/Gem contains the Metrist In-Process Agent.
|
|
4
4
|
|
|
5
5
|
The goal of this agent is simple: all outgoing HTTP traffic gets intercepted and is sent off
|
|
6
|
-
to the local Metrist
|
|
6
|
+
to the local Metrist Orchestrator, which sifts through the data and decides what to do with it.
|
|
7
7
|
|
|
8
8
|
It is kept very simple on purpose: it will time the call, and then send some elementary
|
|
9
|
-
data to the host's
|
|
9
|
+
data to the host's orchestrator per UDP. The overhead of this is in the order of microseconds,
|
|
10
10
|
and an UDP `send()` will not block; this way, we can be sure that your application will
|
|
11
|
-
not be impacted. All the heavy lifting is done in the Monitoring
|
|
11
|
+
not be impacted. All the heavy lifting is done in the Monitoring Orchestrator, where it is fine
|
|
12
12
|
if stuff gets delayed, dropped, or whatever.
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
Just installing the Gem is enough. There is some optional configuration through the environment:
|
|
17
17
|
|
|
18
|
-
* `
|
|
18
|
+
* `METRIST_ORCHESTRATOR_HOST` can be set to a hostname/IP to send the telemetry data to, the default
|
|
19
19
|
is to send to localhost.
|
|
20
|
-
* `
|
|
20
|
+
* `METRIST_ORCHESTRATOR_PORT` can be set to a port to send the telemetry data to, the default is to
|
|
21
21
|
sent to port 51712.
|
|
22
22
|
|
|
23
23
|
## Rails usage
|
data/lib/metrist_ipa/version.rb
CHANGED
data/lib/metrist_ipa.rb
CHANGED
|
@@ -3,10 +3,10 @@ module MetristIpa
|
|
|
3
3
|
attr_writer :host, :port
|
|
4
4
|
|
|
5
5
|
def host
|
|
6
|
-
@host || ENV["
|
|
6
|
+
@host || ENV["METRIST_ORCHESTRATOR_HOST"] || "127.0.0.1"
|
|
7
7
|
end
|
|
8
8
|
def port
|
|
9
|
-
@port || (ENV["
|
|
9
|
+
@port || (ENV["METRIST_ORCHESTRATOR_PORT"] || "51712").to_i
|
|
10
10
|
end
|
|
11
11
|
def config
|
|
12
12
|
yield self
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metrist_ipa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metrist, Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|