fluent-plugin-elasticsearch-stats 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4186ce2d0c16afc286ac07121d65e1169b184ea2b09fb35300dd30e360e936a
4
- data.tar.gz: 07c3fd6f782a8c5a006bd9d901d6014a78b8df910954741c2ed6f350f7ed1fc9
3
+ metadata.gz: fc6e000fbec0775f72253f8f06d1b106da5a9fee93fc2d3e97201c97c03d51f0
4
+ data.tar.gz: 4689ab101c5c6bf3780122e3574cf847937fa49e4992f56379dd54b5c1dd2fc1
5
5
  SHA512:
6
- metadata.gz: ab34eabaf609eba4eacd8b148656968b5fc175e571b6a4531ba1b52e93a654219c5d292297c93893ce2315b410e155a15949dfbd1a6dfa98039c76b7a4caf816
7
- data.tar.gz: 661eedf6ac5f362437ccdd447e43ca09a93d439811b1fc9998971e36463c688520f5d89dd35e150e0a2e9b0a9ca34810ebc70e37498144cd5d0d1cf400e71f5b
6
+ metadata.gz: 5545ec448d383a788d7cac8bb90dcf5917dbe46ed4d9835850e293255326b7e8b77221ded6a249275d8a20b078ca73989a5b8af1e63e9748af456edcec55d179
7
+ data.tar.gz: f817cb0db3deaeba7b6393f81d7184e6b593224e2dcdd6b59a52f019759888f1c1c75020c6aeba9bd4216f6d9c8e1d01f9af0e4df495dc141fd87ec026ed488e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-elasticsearch-stats (0.5.0)
4
+ fluent-plugin-elasticsearch-stats (0.6.0)
5
5
  faraday (~> 2.9)
6
6
  faraday-retry (~> 2.2, >= 2.2.1)
7
7
  fluentd (>= 0.14.10, < 2)
data/README.md CHANGED
@@ -105,6 +105,18 @@ Events from **[/_dangling](https://www.elastic.co/guide/en/elasticsearch/referen
105
105
  |----------|-------------|---------|--------------------------------|
106
106
  | dangling | true\|false | false | enable dangling events collect |
107
107
 
108
+ #### status mapping
109
+
110
+ Here is the chosen status mapping to metric :
111
+
112
+ | status | value |
113
+ |--------|-------|
114
+ | green | 0 |
115
+ | yellow | 1 |
116
+ | red | 2 |
117
+
118
+ So through aggregation, it is still possible to identify status in time (green or not-green).
119
+
108
120
 
109
121
  ## Installation
110
122
 
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fluent-plugin-elasticsearch-stats'
8
- spec.version = '0.5.0'
8
+ spec.version = '0.6.0'
9
9
  spec.authors = ['Thomas Tych']
10
10
  spec.email = ['thomas.tych@gmail.com']
11
11
 
@@ -43,10 +43,10 @@ module Fluent
43
43
 
44
44
  def convert_status(status)
45
45
  case status.downcase
46
- when 'green' then 1
47
- when 'yellow' then 2
48
- when 'red' then 3
49
- else 0
46
+ when 'green' then 0
47
+ when 'yellow' then 1
48
+ when 'red' then 2
49
+ else 3
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elasticsearch-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Tych
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-30 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -252,7 +252,7 @@ licenses:
252
252
  metadata:
253
253
  homepage_uri: https://gitlab.com/ttych/fluent-plugin-elasticsearch-stats
254
254
  source_code_uri: https://gitlab.com/ttych/fluent-plugin-elasticsearch-stats
255
- documentation_uri: http://www.rubydoc.info/gems/fluent-plugin-elasticsearch-stats/0.5.0
255
+ documentation_uri: http://www.rubydoc.info/gems/fluent-plugin-elasticsearch-stats/0.6.0
256
256
  rubygems_mfa_required: 'true'
257
257
  post_install_message:
258
258
  rdoc_options: []