sumologic-metrics 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +23 -1
- data/lib/sumologic/metrics/version.rb +1 -1
- data/sumologic-metrics.gemspec +2 -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: 1b61b1171e1786fd653751bb29c1218f60c19478f22d5b0c163390d4b85b0ecd
|
4
|
+
data.tar.gz: e2828a2276fc577b24936c2eb82dd889fe22a5eebbd229b90a2fc48814001ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7788d8dbdc9b4bccf01c518dd9fd8947de9dd6dbf6dd206d5a450287d87b1b943ec49a00b461b4786c7dfd202c98a8aa62cf927668ba85c5ae2133273e27302
|
7
|
+
data.tar.gz: 7b8fa2b6604166fac2f31e032909124dcbef0eed77df56352dd52c8b5dea1c54b0ac08b7049d57c295a1843a000b7b2f82d79979ad3884ab9747ee348ec72d23
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,14 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://www.travis-ci.org/josacar/sumologic-metrics.svg?branch=master)](https://www.travis-ci.org/josacar/sumologic-metrics)
|
4
4
|
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics?ref=badge_shield)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/sumologic-metrics.svg)](https://badge.fury.io/rb/sumologic-metrics)
|
5
6
|
|
6
7
|
Upload metrics to Sumologic!
|
7
8
|
|
9
|
+
## Requirements
|
10
|
+
|
11
|
+
- At least MRI 2.5 or JRuby 9.2.0.0
|
12
|
+
|
8
13
|
## Installation
|
9
14
|
|
10
15
|
Add this line to your application's Gemfile:
|
@@ -32,6 +37,23 @@ metrics = Sumologic::Metrics.new(collector_uri: url)
|
|
32
37
|
metrics.push('cluster=prod node=lb-1 metric=cpu ip=2.2.3.4 team=infra 99.12 1528020619')
|
33
38
|
```
|
34
39
|
|
40
|
+
### #push
|
41
|
+
|
42
|
+
Queues the metric to the worker ( asynchronous )
|
43
|
+
|
44
|
+
### #queued_metrics
|
45
|
+
|
46
|
+
Returns the size of the queued items
|
47
|
+
|
48
|
+
### #flush
|
49
|
+
|
50
|
+
Waits synchronously until the queue is empty
|
51
|
+
|
52
|
+
## Documentation
|
53
|
+
|
54
|
+
- [Carbon 2.0](https://help.sumologic.com/Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Data-to-an-HTTP-Source) formatted metrics
|
55
|
+
|
56
|
+
|
35
57
|
## Development
|
36
58
|
|
37
59
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -55,4 +77,4 @@ Everyone interacting in the Sumologic::Metrics project’s codebases, issue trac
|
|
55
77
|
|
56
78
|
## Thanks
|
57
79
|
|
58
|
-
- SegmentIO for their [analytics-ruby](https://github.com/segmentio/analytics-ruby) gem
|
80
|
+
- SegmentIO for their [analytics-ruby](https://github.com/segmentio/analytics-ruby) gem
|
data/sumologic-metrics.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumologic-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Luis Salas
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
99
|
+
version: 2.4.0
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|