librato-metrics 2.0.0.beta → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +1 -1
- data/README.md +5 -4
- data/lib/librato/metrics/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI5N2QwNjUwYTgxZTdlZWMwNjEwY2E1N2M2YTc0NWRkZDhjM2U3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjc0ZjBmNmVkZTRjM2U3MjRmYTM3ZmRjMTQ4OGE0NGM2MjI1NWU1Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDFiNTE2Y2Q1ZmExNDM2ZjE2ZGQzYTgzNDIzNjg0MWVkNmZiMTNlYzYwNmZk
|
10
|
+
ZDlmODliMjcwNWUwOTU5OTYwMjE4NzZlY2Q0Mzk3YzRmMDlmYTk1ZjY0NTNh
|
11
|
+
ZTc3YzVmZGViODQzODY3NWJmNGIzY2ZjODVhY2E2MDZjNzVkYjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzFjYmJlM2VkYjJjN2EzOWFhODkxMjdjYTNhYWFhYTM3OWM0MTI2NmQyMTY5
|
14
|
+
ZmUxNWM2Y2NiZTgxYmIxOWU0NmNkZWQ1NzFmNWRiMTZhMTBhNjcxOGQ2ZmIw
|
15
|
+
MjZhZDQ5NzBlMDk2MzM4ZWJhNTdhNDNjNjgyYjA4ZDY1MGRmMGE=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -77,7 +77,7 @@ Queue up a metric with a specified source:
|
|
77
77
|
|
78
78
|
queue.add cpu: {source: 'app1', value: 92.6}
|
79
79
|
|
80
|
-
A complete [list of metric attributes](
|
80
|
+
A complete [list of metric attributes](https://www.librato.com/docs/api/#metric-attributes) is available in the [API documentation](https://www.librato.com/docs/api/).
|
81
81
|
|
82
82
|
Send currently queued measurements to Metrics:
|
83
83
|
|
@@ -85,7 +85,7 @@ Send currently queued measurements to Metrics:
|
|
85
85
|
|
86
86
|
## Aggregate Measurements
|
87
87
|
|
88
|
-
If you are measuring something very frequently e.g. per-request in a web application (order mS) you may not want to send each individual measurement, but rather periodically send a [single aggregate measurement](
|
88
|
+
If you are measuring something very frequently e.g. per-request in a web application (order mS) you may not want to send each individual measurement, but rather periodically send a [single aggregate measurement](https://www.librato.com/docs/api/#submit-metrics), spanning multiple seconds or even minutes. Use an `Aggregator` for this.
|
89
89
|
|
90
90
|
Aggregate a simple gauge metric named `response_latency`:
|
91
91
|
|
@@ -216,11 +216,12 @@ Get the 5 minute moving average for `temperature` for the last hour, assuming te
|
|
216
216
|
|
217
217
|
data = Librato::Metrics.get_composite 'moving_average(mean(series("temperature", "*"), {size: "5"}))', start_time: Time.now.to_i - 60*60, resolution: 300
|
218
218
|
|
219
|
-
There are many more options supported for querying, take a look at the
|
219
|
+
There are many more options supported for querying, take a look at the
|
220
|
+
[REST API docs](https://www.librato.com/docs/api/#retrieve-metrics) or the individual method documentation for more details.
|
220
221
|
|
221
222
|
## Setting Metric Properties
|
222
223
|
|
223
|
-
Setting custom [properties](
|
224
|
+
Setting custom [properties](https://www.librato.com/docs/api/#metric-attributes) on your metrics is easy:
|
224
225
|
|
225
226
|
# assign a period and default color
|
226
227
|
Librato::Metrics.update_metric :temperature, period: 15, attributes: { color: 'F00' }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librato-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Sanders
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
dzJsaG9DTUxDU1NqOVQvWXlSVEwzVVFZb0s1cFBBNzYKaHZqeDBXSlA4cHpa
|
36
36
|
TUpQS0pCUlpRWEpPNWlmRVB5S2paeU1pNVhNSG1ydERjbEhMajNzeDRSQXZF
|
37
37
|
WmpHV2tSUApKU1E9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
38
|
-
date: 2016-
|
38
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: faraday
|
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '1.9'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ! '
|
136
|
+
- - ! '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
141
|
rubygems_version: 2.6.6
|
metadata.gz.sig
CHANGED
Binary file
|