fluent-plugin-label-router 0.2.7 → 0.2.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 214b0ab1c791ea384c2bc1f1f2e44f8f27ee23b0ba5b35c9d357e535f0ac4bda
|
|
4
|
+
data.tar.gz: 9dc61783f297966d51469a9716465a4cf37c62d2c1f7059c9175b3686709a694
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b55e88561ee31fe9dbdf6481c293be9337a8aab482031c00717a972a212785f263a382e3e05384b45efed6258c39f30a71099e80556e9f55b001933a735d58b3
|
|
7
|
+
data.tar.gz: d0e80aeba02b97c9a2bc2d17f991eac2baf8e53fb56d1a7f24dee60d528f97c5da417a4233e1f9d65c3ec5a9f71d749cfaa1da269db947ed262c4becfb65769d
|
|
@@ -69,7 +69,7 @@ module Fluent
|
|
|
69
69
|
@metrics_labels = (rule['metrics_labels'].map { |k, v| [k.to_sym, v] }.to_h if rule['metrics_labels'])
|
|
70
70
|
@counter = nil
|
|
71
71
|
unless registry.nil?
|
|
72
|
-
@counter = registry.counter(:fluentd_router_records_total, docstring: "Total number of events router for the flow", labels: [:flow])
|
|
72
|
+
@counter = registry.counter(:fluentd_router_records_total, docstring: "Total number of events router for the flow", labels: [:flow, :id])
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -122,6 +122,7 @@ module Fluent
|
|
|
122
122
|
else
|
|
123
123
|
@router.emit(@tag, time, record)
|
|
124
124
|
end
|
|
125
|
+
@counter&.increment(by: 1, labels: get_labels)
|
|
125
126
|
end
|
|
126
127
|
|
|
127
128
|
def emit_es(tag, es)
|