fluent-plugin-prometheus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +3 -4
- data/fluent-plugin-prometheus.gemspec +2 -2
- data/lib/fluent/plugin/prometheus.rb +2 -2
- data/misc/{prometheus.conf → prometheus-old-format.conf} +0 -0
- data/misc/prometheus.yaml +8 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0015d77e131a78ad42b181d8d57a981b07398298
|
4
|
+
data.tar.gz: 69cb9279858bef00990af84ee4f82533bb5b4b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b51025e9ec268a8dc2252c58a99b80a67d019a15933ea763b05f1c5260a2e1ed5c8f282103ed4f0bfc48ab531e73decb1d74c71a294a3b1f147aa5f147165e2
|
7
|
+
data.tar.gz: ce3da1320eb05ee4d5e5fc258ee4b671a6647a84d7e4960fbed6769240ea6c99ece2be130af334436f32b0d5e40e6061e69730ae61366721022b75fbd7a2e148
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -291,9 +291,8 @@ $ bundle install --path vendor/bundle
|
|
291
291
|
Download pre-compiled prometheus binary and start it. It listens on 9090.
|
292
292
|
|
293
293
|
```
|
294
|
-
$
|
295
|
-
$
|
296
|
-
$ ./prometheus/prometheus -config.file=./misc/prometheus.conf -storage.local.path=./prometheus/metrics
|
294
|
+
$ wget https://github.com/prometheus/prometheus/releases/download/0.16.1/prometheus-0.16.1.linux-amd64.tar.gz -O - | tar zxf -
|
295
|
+
$ ./prometheus-0.16.1.linux-amd64/prometheus -config.file=./misc/prometheus.yaml -storage.local.path=./prometheus/metrics
|
297
296
|
```
|
298
297
|
|
299
298
|
Install Nginx for sample metrics. It listens on 80 and 9999.
|
@@ -301,7 +300,7 @@ Install Nginx for sample metrics. It listens on 80 and 9999.
|
|
301
300
|
```
|
302
301
|
$ sudo apt-get install -y nginx
|
303
302
|
$ sudo cp misc/nginx_proxy.conf /etc/nginx/sites-enabled/proxy
|
304
|
-
$ sudo chmod 777 /var/log/nginx && sudo chmod +r /var/log/nginx
|
303
|
+
$ sudo chmod 777 /var/log/nginx && sudo chmod +r /var/log/nginx/*.log
|
305
304
|
$ sudo service nginx restart
|
306
305
|
```
|
307
306
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "fluent-plugin-prometheus"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.1"
|
4
4
|
spec.authors = ["Masahiro Sano"]
|
5
5
|
spec.email = ["sabottenda@gmail.com"]
|
6
6
|
spec.summary = %q{A fluent plugin that collects metrics and exposes for Prometheus.}
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.add_dependency "fluentd"
|
17
17
|
spec.add_dependency "prometheus-client"
|
18
|
-
spec.add_development_dependency "bundler"
|
18
|
+
spec.add_development_dependency "bundler", ">= 0.12.13"
|
19
19
|
spec.add_development_dependency "rake"
|
20
20
|
spec.add_development_dependency "rspec"
|
21
21
|
spec.add_development_dependency "test-unit"
|
@@ -46,14 +46,14 @@ module Fluent
|
|
46
46
|
if defined?(Fluent::Filter) # for v0.12, built-in PlaceholderExpander
|
47
47
|
begin
|
48
48
|
require 'fluent/plugin/filter_record_transformer'
|
49
|
-
return Fluent::RecordTransformerFilter::PlaceholderExpander.new(log)
|
49
|
+
return Fluent::RecordTransformerFilter::PlaceholderExpander.new(log: log)
|
50
50
|
rescue LoadError => e
|
51
51
|
raise ConfigError, "cannot find filter_record_transformer plugin: #{e.message}"
|
52
52
|
end
|
53
53
|
else # for v0.10, use PlaceholderExapander in fluent-plugin-record-reformer plugin
|
54
54
|
begin
|
55
55
|
require 'fluent/plugin/out_record_reformer.rb'
|
56
|
-
return Fluent::RecordReformerOutput::PlaceholderExpander.new(log)
|
56
|
+
return Fluent::RecordReformerOutput::PlaceholderExpander.new(log: log)
|
57
57
|
rescue LoadError => e
|
58
58
|
raise ConfigError, "cannot find fluent-plugin-record-reformer: #{e.message}"
|
59
59
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-prometheus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Sano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.12.13
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.12.13
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,8 @@ files:
|
|
117
117
|
- lib/fluent/plugin/prometheus.rb
|
118
118
|
- misc/fluentd_sample.conf
|
119
119
|
- misc/nginx_proxy.conf
|
120
|
-
- misc/prometheus.conf
|
120
|
+
- misc/prometheus-old-format.conf
|
121
|
+
- misc/prometheus.yaml
|
121
122
|
- spec/fluent/plugin/filter_prometheus_spec.rb
|
122
123
|
- spec/fluent/plugin/out_prometheus_spec.rb
|
123
124
|
- spec/fluent/plugin/prometheus_spec.rb
|