fluent-plugin-node-exporter-metrics 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/linux-test.yaml +42 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +202 -0
  7. data/README.md +167 -0
  8. data/Rakefile +13 -0
  9. data/docs/cpu.md +26 -0
  10. data/docs/cpufreq.md +43 -0
  11. data/docs/diskstats.md +27 -0
  12. data/docs/filefd.md +12 -0
  13. data/docs/loadavg.md +13 -0
  14. data/docs/meminfo.md +61 -0
  15. data/docs/netdev.md +26 -0
  16. data/docs/stat.md +17 -0
  17. data/docs/time.md +9 -0
  18. data/docs/uname.md +15 -0
  19. data/docs/vmstat.md +17 -0
  20. data/fluent-plugin-node-exporter-metrics.gemspec +31 -0
  21. data/lib/fluent/plugin/in_node_exporter_metrics.rb +138 -0
  22. data/lib/fluent/plugin/node_exporter/cmetrics_dataschema_parser.rb +84 -0
  23. data/lib/fluent/plugin/node_exporter/collector.rb +41 -0
  24. data/lib/fluent/plugin/node_exporter/cpu_collector.rb +130 -0
  25. data/lib/fluent/plugin/node_exporter/cpufreq_collector.rb +97 -0
  26. data/lib/fluent/plugin/node_exporter/diskstats_collector.rb +280 -0
  27. data/lib/fluent/plugin/node_exporter/filefd_collector.rb +60 -0
  28. data/lib/fluent/plugin/node_exporter/loadavg_collector.rb +64 -0
  29. data/lib/fluent/plugin/node_exporter/meminfo_collector.rb +61 -0
  30. data/lib/fluent/plugin/node_exporter/netdev_collector.rb +92 -0
  31. data/lib/fluent/plugin/node_exporter/stat_collector.rb +84 -0
  32. data/lib/fluent/plugin/node_exporter/time_collector.rb +50 -0
  33. data/lib/fluent/plugin/node_exporter/uname_collector.rb +64 -0
  34. data/lib/fluent/plugin/node_exporter/vmstat_collector.rb +56 -0
  35. data/lib/fluent/plugin/parser_node_exporter_metrics.rb +54 -0
  36. data/test/fixtures/cpu/with_thermal_throttle/proc/stat +3 -0
  37. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/core_throttle_count +1 -0
  38. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/package_throttle_count +1 -0
  39. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/core_id +1 -0
  40. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/physical_package_id +1 -0
  41. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/core_throttle_count +1 -0
  42. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/package_throttle_count +1 -0
  43. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/core_id +1 -0
  44. data/test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/physical_package_id +1 -0
  45. data/test/fixtures/cpu/without_thermal_throttle/proc/stat +3 -0
  46. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq +1 -0
  47. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq +1 -0
  48. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq +1 -0
  49. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq +1 -0
  50. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq +1 -0
  51. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq +1 -0
  52. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq +1 -0
  53. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq +1 -0
  54. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq +1 -0
  55. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq +1 -0
  56. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq +1 -0
  57. data/test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq +1 -0
  58. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq +1 -0
  59. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq +1 -0
  60. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq +1 -0
  61. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq +1 -0
  62. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq +1 -0
  63. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq +1 -0
  64. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq +1 -0
  65. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq +1 -0
  66. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq +1 -0
  67. data/test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq +1 -0
  68. data/test/helper.rb +24 -0
  69. data/test/plugin/test_cmetrics_data_schema_parser.rb +83 -0
  70. data/test/plugin/test_cpu_collector.rb +84 -0
  71. data/test/plugin/test_cpufreq_collector.rb +75 -0
  72. data/test/plugin/test_diskstats_collector.rb +200 -0
  73. data/test/plugin/test_filefd_collector.rb +39 -0
  74. data/test/plugin/test_in_node_exporter_metrics.rb +583 -0
  75. data/test/plugin/test_loadavg_collector.rb +41 -0
  76. data/test/plugin/test_meminfo_collector.rb +47 -0
  77. data/test/plugin/test_netdev_collector.rb +35 -0
  78. data/test/plugin/test_stat_collector.rb +37 -0
  79. data/test/plugin/test_time_collector.rb +15 -0
  80. data/test/plugin/test_uname_collector.rb +47 -0
  81. data/test/plugin/test_vmstat_collector.rb +53 -0
  82. metadata +273 -0
@@ -0,0 +1,35 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_node_exporter_metrics"
3
+ require "fluent/plugin/node_exporter/netdev_collector"
4
+
5
+ class NetdevColectorTest < Test::Unit::TestCase
6
+ sub_test_case "netdev" do
7
+
8
+ def parse(input)
9
+ stub(File).readlines { input.split("\n") }
10
+ collector = Fluent::Plugin::NodeExporter::NetdevMetricsCollector.new
11
+ collector.run
12
+ yield collector
13
+ end
14
+
15
+ def test_netdev_lo
16
+ proc_netdev = <<EOS
17
+ Inter-| Receive | Transmit
18
+ face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
19
+ lo: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
20
+ EOS
21
+ parse(proc_netdev) do |collector|
22
+ expected = 16.times.collect do |i| (i + 1).to_f end
23
+
24
+ values = []
25
+ Fluent::Plugin::NodeExporter::NetdevMetricsCollector::RECEIVE_FIELDS.each do |field|
26
+ values << collector.cmetrics["receive_#{field}_total".intern].val(["lo"])
27
+ end
28
+ Fluent::Plugin::NodeExporter::NetdevMetricsCollector::TRANSMIT_FIELDS.each do |field|
29
+ values << collector.cmetrics["transmit_#{field}_total".intern].val(["lo"])
30
+ end
31
+ assert_equal(expected, values)
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,37 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_node_exporter_metrics"
3
+ require "fluent/plugin/node_exporter/stat_collector"
4
+
5
+ class StatColectorTest < Test::Unit::TestCase
6
+ sub_test_case "stat" do
7
+
8
+ def parse(input)
9
+ stub(File).readlines { input.split("\n") }
10
+ collector = Fluent::Plugin::NodeExporter::StatMetricsCollector.new
11
+ collector.run
12
+ yield collector
13
+ end
14
+
15
+ def test_stat
16
+ proc_stat = <<EOS
17
+ intr 100 33
18
+ ctxt 10000
19
+ processes 1000
20
+ btime 1630974699
21
+ procs_running 2
22
+ procs_blocked 3
23
+ EOS
24
+ parse(proc_stat) do |collector|
25
+ intr_total = collector.cmetrics[:intr_total]
26
+ context_switches_total = collector.cmetrics[:context_switches_total]
27
+ forks_total = collector.cmetrics[:forks_total]
28
+ boot_time_seconds = collector.cmetrics[:boot_time_seconds]
29
+ procs_running = collector.cmetrics[:procs_running]
30
+ procs_blocked = collector.cmetrics[:procs_blocked]
31
+ assert_equal([100.0, 10000.0, 1000.0, 1630974699.0, 2.0, 3.0],
32
+ [intr_total.val, context_switches_total.val,
33
+ forks_total.val, boot_time_seconds.val, procs_running.val, procs_blocked.val])
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,15 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_node_exporter_metrics"
3
+ require "fluent/plugin/node_exporter/time_collector"
4
+
5
+ class TimeColectorTest < Test::Unit::TestCase
6
+ sub_test_case "time_seconds" do
7
+ def test_time_now
8
+ collector = Fluent::Plugin::NodeExporter::TimeMetricsCollector.new
9
+ stub(Fluent::EventTime).now { Fluent::EventTime.new(1e9) }
10
+ collector.run
11
+ time_seconds = collector.cmetrics[:time_seconds]
12
+ assert_equal(1.0, time_seconds.val)
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,47 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_node_exporter_metrics"
3
+ require "fluent/plugin/node_exporter/uname_collector"
4
+
5
+ class UnameColectorTest < Test::Unit::TestCase
6
+ sub_test_case "info" do
7
+ WITHOUT_DOMAINNAME = {
8
+ sysname: "Linux",
9
+ release: "5.10.0-8-amd64",
10
+ version: "#1 SMP Debian 5.10.46-4 (2021-08-03)",
11
+ machine: "x86_64",
12
+ nodename: "jessie",
13
+ }
14
+
15
+ WITH_DOMAINNAME = {
16
+ sysname: "Linux",
17
+ release: "5.10.0-8-amd64",
18
+ version: "#1 SMP Debian 5.10.46-4 (2021-08-03)",
19
+ machine: "x86_64",
20
+ nodename: "jackie",
21
+ domainname: "marion"
22
+ }
23
+
24
+ def parse
25
+ collector = Fluent::Plugin::NodeExporter::UnameMetricsCollector.new
26
+ collector.run
27
+ yield collector
28
+ end
29
+
30
+ def test_with_domainmame
31
+ stub(Etc).uname { WITH_DOMAINNAME }
32
+ parse do |collector|
33
+ info = collector.cmetrics[:info]
34
+ assert_equal(1, info.val(WITH_DOMAINNAME.values))
35
+ end
36
+ end
37
+
38
+ def test_without_domainmame
39
+ stub(Etc).uname { WITHOUT_DOMAINNAME }
40
+ parse do |collector|
41
+ collector.run
42
+ info = collector.cmetrics[:info]
43
+ assert_equal(1, info.val(WITHOUT_DOMAINNAME.values << "(none)"))
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,53 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_node_exporter_metrics"
3
+ require "fluent/plugin/node_exporter/vmstat_collector"
4
+
5
+ class VmstatColectorTest < Test::Unit::TestCase
6
+ sub_test_case "vmstat" do
7
+
8
+ def parse(input)
9
+ stub(File).readlines { input.split("\n") }
10
+ collector = Fluent::Plugin::NodeExporter::VmstatMetricsCollector.new
11
+ collector.run
12
+ yield collector
13
+ end
14
+
15
+ def test_empty_metrics
16
+ omit "/proc/vmstat is only available on *nix" unless Fluent.linux?
17
+
18
+ proc_vmstat = <<EOS
19
+ numa_hit 168082746
20
+ numa_miss 0
21
+ EOS
22
+ parse(proc_vmstat) do |collector|
23
+ assert_equal({}, collector.cmetrics)
24
+ end
25
+ end
26
+
27
+ def test_all_metrics
28
+ omit "/proc/vmstat is only available on *nix" unless Fluent.linux?
29
+
30
+ proc_vmstat = <<EOS
31
+ oom_kill 0
32
+ pgpgin 1
33
+ pgpgout 2
34
+ pswpin 3
35
+ pswpout 4
36
+ pgfault 5
37
+ pgmajfault 6
38
+ EOS
39
+ parse(proc_vmstat) do |collector|
40
+ values = collector.cmetrics.collect do |key, metric|
41
+ {key => metric.val}
42
+ end
43
+ assert_equal([{oom_kill: 0.0},
44
+ {pgpgin: 1.0},
45
+ {pgpgout: 2.0},
46
+ {pswpin: 3.0},
47
+ {pswpout: 4.0},
48
+ {pgfault: 5.0},
49
+ {pgmajfault: 6.0}], values)
50
+ end
51
+ end
52
+ end
53
+ end
metadata ADDED
@@ -0,0 +1,273 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fluent-plugin-node-exporter-metrics
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kentaro Hayashi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cmetrics
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: capng_c
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.2.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 13.0.6
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 13.0.6
69
+ - !ruby/object:Gem::Dependency
70
+ name: test-unit
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.4.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.4.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: test-unit-rr
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.5
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.5
97
+ - !ruby/object:Gem::Dependency
98
+ name: fluentd
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.14.10
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: '2'
107
+ type: :runtime
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 0.14.10
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: '2'
117
+ description: node exporter metrics input plugin implements 11 node exporter collectors
118
+ email:
119
+ - hayashi@clear-code.com
120
+ executables: []
121
+ extensions: []
122
+ extra_rdoc_files: []
123
+ files:
124
+ - ".github/workflows/linux-test.yaml"
125
+ - ".gitignore"
126
+ - CHANGELOG.md
127
+ - Gemfile
128
+ - LICENSE
129
+ - README.md
130
+ - Rakefile
131
+ - docs/cpu.md
132
+ - docs/cpufreq.md
133
+ - docs/diskstats.md
134
+ - docs/filefd.md
135
+ - docs/loadavg.md
136
+ - docs/meminfo.md
137
+ - docs/netdev.md
138
+ - docs/stat.md
139
+ - docs/time.md
140
+ - docs/uname.md
141
+ - docs/vmstat.md
142
+ - fluent-plugin-node-exporter-metrics.gemspec
143
+ - lib/fluent/plugin/in_node_exporter_metrics.rb
144
+ - lib/fluent/plugin/node_exporter/cmetrics_dataschema_parser.rb
145
+ - lib/fluent/plugin/node_exporter/collector.rb
146
+ - lib/fluent/plugin/node_exporter/cpu_collector.rb
147
+ - lib/fluent/plugin/node_exporter/cpufreq_collector.rb
148
+ - lib/fluent/plugin/node_exporter/diskstats_collector.rb
149
+ - lib/fluent/plugin/node_exporter/filefd_collector.rb
150
+ - lib/fluent/plugin/node_exporter/loadavg_collector.rb
151
+ - lib/fluent/plugin/node_exporter/meminfo_collector.rb
152
+ - lib/fluent/plugin/node_exporter/netdev_collector.rb
153
+ - lib/fluent/plugin/node_exporter/stat_collector.rb
154
+ - lib/fluent/plugin/node_exporter/time_collector.rb
155
+ - lib/fluent/plugin/node_exporter/uname_collector.rb
156
+ - lib/fluent/plugin/node_exporter/vmstat_collector.rb
157
+ - lib/fluent/plugin/parser_node_exporter_metrics.rb
158
+ - test/fixtures/cpu/with_thermal_throttle/proc/stat
159
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/core_throttle_count
160
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/package_throttle_count
161
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/core_id
162
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/physical_package_id
163
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/core_throttle_count
164
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/package_throttle_count
165
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/core_id
166
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/physical_package_id
167
+ - test/fixtures/cpu/without_thermal_throttle/proc/stat
168
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
169
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
170
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
171
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
172
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
173
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
174
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
175
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
176
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
177
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
178
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
179
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
180
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
181
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
182
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
183
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
184
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
185
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
186
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
187
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
188
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
189
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
190
+ - test/helper.rb
191
+ - test/plugin/test_cmetrics_data_schema_parser.rb
192
+ - test/plugin/test_cpu_collector.rb
193
+ - test/plugin/test_cpufreq_collector.rb
194
+ - test/plugin/test_diskstats_collector.rb
195
+ - test/plugin/test_filefd_collector.rb
196
+ - test/plugin/test_in_node_exporter_metrics.rb
197
+ - test/plugin/test_loadavg_collector.rb
198
+ - test/plugin/test_meminfo_collector.rb
199
+ - test/plugin/test_netdev_collector.rb
200
+ - test/plugin/test_stat_collector.rb
201
+ - test/plugin/test_time_collector.rb
202
+ - test/plugin/test_uname_collector.rb
203
+ - test/plugin/test_vmstat_collector.rb
204
+ homepage: https://github.com/fluent-plugins-nursery/fluent-plugin-node-exporter-metrics
205
+ licenses:
206
+ - Apache-2.0
207
+ metadata: {}
208
+ post_install_message:
209
+ rdoc_options: []
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ requirements: []
223
+ rubygems_version: 3.1.6
224
+ signing_key:
225
+ specification_version: 4
226
+ summary: Input plugin which collects metrics similar to Prometheus Node Exporter
227
+ test_files:
228
+ - test/fixtures/cpu/with_thermal_throttle/proc/stat
229
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/core_throttle_count
230
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/thermal_throttle/package_throttle_count
231
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/core_id
232
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu0/topology/physical_package_id
233
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/core_throttle_count
234
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/thermal_throttle/package_throttle_count
235
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/core_id
236
+ - test/fixtures/cpu/with_thermal_throttle/sys/devices/system/cpu/cpu1/topology/physical_package_id
237
+ - test/fixtures/cpu/without_thermal_throttle/proc/stat
238
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
239
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
240
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
241
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
242
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
243
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
244
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
245
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
246
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
247
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
248
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
249
+ - test/fixtures/cpufreq/with_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
250
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
251
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
252
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
253
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
254
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
255
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
256
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
257
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
258
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
259
+ - test/fixtures/cpufreq/without_cur_freq/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
260
+ - test/helper.rb
261
+ - test/plugin/test_cmetrics_data_schema_parser.rb
262
+ - test/plugin/test_cpu_collector.rb
263
+ - test/plugin/test_cpufreq_collector.rb
264
+ - test/plugin/test_diskstats_collector.rb
265
+ - test/plugin/test_filefd_collector.rb
266
+ - test/plugin/test_in_node_exporter_metrics.rb
267
+ - test/plugin/test_loadavg_collector.rb
268
+ - test/plugin/test_meminfo_collector.rb
269
+ - test/plugin/test_netdev_collector.rb
270
+ - test/plugin/test_stat_collector.rb
271
+ - test/plugin/test_time_collector.rb
272
+ - test/plugin/test_uname_collector.rb
273
+ - test/plugin/test_vmstat_collector.rb