fluent-plugin-loki-custom 0.2.2 → 0.2.3

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: 676cecef93a9753f2e46cafaca7e6b1fa6d983881e1fa2def0f5136825fa81c7
4
- data.tar.gz: 343e34ae59e7661dc1a81c0b6ef85ffdc22dbc9d374e858b6e1e685012dd805f
3
+ metadata.gz: ab80c35c01300ad231925bd3f015d8a7bd7e41b3b679e582f504268e51846761
4
+ data.tar.gz: fc85e116054a63d1df60c387a2c092013f6e0ec15b858e9bb3799a58750df488
5
5
  SHA512:
6
- metadata.gz: b54dea438bd01285098e39a3c74eb141d05cf1b962012f4278e721825a3cade5e4e11576a9aeb80d7838da9b5a2cbe6eb7fb868070d86b55a4abba8fe8e3dbe3
7
- data.tar.gz: 87a3dd6c36c9803d909ee134b466873b8e05a38844e225d6f5babbd67d7db6a4f4f37f5f335d52ffb7b2a8273813144535f7cdf6c3dc44c5cf1f566eb19788d8
6
+ metadata.gz: a73d8c6b4f12ef478cd4cc0f0d0001a0d1b0ea62673efe898cd0d263aa637ee1d71d7c16137533ec86b68caa182982638455622bfd304c405182f33d8b2fef9b
7
+ data.tar.gz: 3f9169c33c2c5db9e98d13012d48891a79c45117220ce2402bb43a1dc556d7d3bf671c6ee7e363e6b95c308927f768a0928af6a1ac95c7e7ac9f5d9a3f41d349
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-loki-custom"
5
- gem.version = "0.2.2"
5
+ gem.version = "0.2.3"
6
6
  gem.authors = ["Edan Shahmoon", "Saher El-Neklawy"]
7
7
  gem.email = ["edan100@gmail.com", "saher.neklawy@gmail.com"]
8
8
  gem.summary = %q{A Fluentd output plugin to send logs to Grafana Loki}
@@ -183,6 +183,7 @@ class Fluent::Plugin::LokiOutput < Fluent::Plugin::Output
183
183
  def handle_record(tag, time, record)
184
184
  rec = {"streams"=>[{"labels"=>format_labels(@labels, record), "entries"=>[{"ts"=>Time.now.iso8601(3), "line"=>record.to_json}]}]}
185
185
  # I used time now instead of at 'time' because it cause 'Entry out of order' on loki's side
186
+ log.info(req.to_json)
186
187
  req, uri = create_request(tag, time, rec)
187
188
  send_request(req, uri)
188
189
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-loki-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edan Shahmoon