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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 975f71bc42e2fcbd393003e0de70226c450c3ecc
4
- data.tar.gz: 98548ff7299d46702d17a39e204bd05e610dcf67
3
+ metadata.gz: 0015d77e131a78ad42b181d8d57a981b07398298
4
+ data.tar.gz: 69cb9279858bef00990af84ee4f82533bb5b4b78
5
5
  SHA512:
6
- metadata.gz: f95fae92733fc3af07cd27fec952af31772d55dee91ae3eded8bb234c7b0b76272cc667e97ca8ada41fbea4dfaf12c73d12bba209ce63028c31ab74adfac2cd3
7
- data.tar.gz: 91a012c917969ac1278ba5769302ade6fde3113a364f79c013e5ce29488d488aa38be73acd77fe1e28f753fecb81f30e98584bb38512944bbe56895ba3c174ee
6
+ metadata.gz: 8b51025e9ec268a8dc2252c58a99b80a67d019a15933ea763b05f1c5260a2e1ed5c8f282103ed4f0bfc48ab531e73decb1d74c71a294a3b1f147aa5f147165e2
7
+ data.tar.gz: ce3da1320eb05ee4d5e5fc258ee4b671a6647a84d7e4960fbed6769240ea6c99ece2be130af334436f32b0d5e40e6061e69730ae61366721022b75fbd7a2e148
data/.travis.yml CHANGED
@@ -3,6 +3,7 @@ language: ruby
3
3
  rvm:
4
4
  - 2.1
5
5
  - 2.2
6
+ - 2.3.0
6
7
 
7
8
  gemfile:
8
9
  - Gemfile
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
- $ mkdir prometheus
295
- $ wget https://github.com/prometheus/prometheus/releases/download/0.13.3/prometheus-0.13.3.linux-amd64.tar.gz -O - | tar zxf - -C prometheus
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/access.log
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.0"
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
@@ -0,0 +1,8 @@
1
+ # A job to scrape an endpoint of Fluentd running on localhost.
2
+ scrape_configs:
3
+ - job_name: fluentd
4
+ scrape_interval: 5s
5
+ target_groups:
6
+ - targets:
7
+ - 'localhost:24231'
8
+ metrics_path: /metrics
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.0
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: 2015-05-17 00:00:00.000000000 Z
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: '0'
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: '0'
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