fluent-plugin-jfrog-metrics 0.2.15 → 0.2.16
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 +4 -4
- data/.gitignore +3 -0
- data/.rspec +1 -0
- data/CHANGELOG.md +13 -19
- data/Gemfile.lock +81 -0
- data/fluent-plugin-jfrog-metrics.gemspec +9 -6
- data/lib/fluent/plugin/metrics_helper.rb +2 -0
- data/spec/lib/datadog_metrics_parser_spec.rb +24 -31
- data/spec/lib/newrelic_metrics_parser_spec.rb +9 -25
- data/spec/lib/splunk_metrics_parser_spec.rb +9 -19
- metadata +18 -17
- data/spec/fixtures/files/sample_metrics_with_nested_braces.txt +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 335f7170ad6eed8eb8237cfe912c0e6c547825a7b16904ebbd84c0247e51dbf6
|
|
4
|
+
data.tar.gz: 73c094c9e41b5e163e5a6f604073a7ec84530fc9376033cc555aa15df58d21e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84d8410b8fcccefdca9b76071cbf1a2e42cba33fde5fb973e52e09939f52b08d779f533189220c982af2a131b231807dcc76b2293661c327acf323cbf6cf495b
|
|
7
|
+
data.tar.gz: 58cb4bd996293b1ec508b35281f39788f5be88a32900da0faa941377328a9f9accd383b8673be109b3251c65176d9c7df9fde24e6084917fff96f4ca8f9d4272
|
data/.gitignore
ADDED
data/.rspec
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--require spec_helper
|
data/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## v0.2.16
|
|
4
|
+
- Added RTFS (Real-Time File Store) metrics endpoint support ([JOBS-1897](https://jfrog-int.atlassian.net/browse/JOBS-1897))
|
|
5
|
+
- New metric_prefix `jfrog.rtfs` maps to `/artifactory/service/rtfs/api/v1/metrics`
|
|
4
6
|
|
|
5
|
-
##
|
|
7
|
+
## v0.2.13
|
|
8
|
+
- Added fix to parse metrics without timestamps (JOBS-1801)
|
|
9
|
+
- Honour NO_PROXY environment variable for log analytics solutions (JOBS-1732)
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- `splunk_metrics_parser.rb`
|
|
12
|
-
- `newrelic_metrics_parser.rb`
|
|
13
|
-
- This fix resolves the "no implicit conversion of nil into String" error when parsing metrics like:
|
|
14
|
-
```
|
|
15
|
-
db_query_large_total{action="/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}",application="Artifactory"} 1.0
|
|
16
|
-
```
|
|
11
|
+
## v0.2.12
|
|
12
|
+
- Add FluentD logger option to metrics plugins (PTRENG-6541)
|
|
13
|
+
- Fix wrapper for gzip stream handling (PTRENG-6489)
|
|
14
|
+
- Enhance HTTP request timeout handling (PTRENG-6489)
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
## [0.2.14] - 2026-01-19
|
|
22
|
-
|
|
23
|
-
### Previous Release
|
|
24
|
-
- See previous release notes for earlier changes
|
|
16
|
+
## v0.2.11
|
|
17
|
+
- Add support for verify_ssl flag (PTRENG-6164)
|
|
18
|
+
- Add http_proxy param support for API calls to vendors (PTRENG-6261)
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
fluent-plugin-jfrog-metrics (0.2.13)
|
|
5
|
+
fluentd (>= 0.14.10, < 2)
|
|
6
|
+
rest-client (~> 2.1.0)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
ansi (1.5.0)
|
|
12
|
+
builder (3.2.4)
|
|
13
|
+
concurrent-ruby (1.2.2)
|
|
14
|
+
cool.io (1.7.1)
|
|
15
|
+
domain_name (0.5.20190701)
|
|
16
|
+
unf (>= 0.0.5, < 1.0.0)
|
|
17
|
+
fluentd (1.16.1)
|
|
18
|
+
bundler
|
|
19
|
+
cool.io (>= 1.4.5, < 2.0.0)
|
|
20
|
+
http_parser.rb (>= 0.5.1, < 0.9.0)
|
|
21
|
+
msgpack (>= 1.3.1, < 2.0.0)
|
|
22
|
+
serverengine (>= 2.3.2, < 3.0.0)
|
|
23
|
+
sigdump (~> 0.2.2)
|
|
24
|
+
strptime (>= 0.2.4, < 1.0.0)
|
|
25
|
+
tzinfo (>= 1.0, < 3.0)
|
|
26
|
+
tzinfo-data (~> 1.0)
|
|
27
|
+
webrick (~> 1.4)
|
|
28
|
+
yajl-ruby (~> 1.0)
|
|
29
|
+
http-accept (1.7.0)
|
|
30
|
+
http-cookie (1.0.4)
|
|
31
|
+
domain_name (~> 0.5)
|
|
32
|
+
http_parser.rb (0.8.0)
|
|
33
|
+
mime-types (3.4.1)
|
|
34
|
+
mime-types-data (~> 3.2015)
|
|
35
|
+
mime-types-data (3.2021.1115)
|
|
36
|
+
minitest (5.14.4)
|
|
37
|
+
minitest-reporters (1.4.3)
|
|
38
|
+
ansi
|
|
39
|
+
builder
|
|
40
|
+
minitest (>= 5.0)
|
|
41
|
+
ruby-progressbar
|
|
42
|
+
msgpack (1.7.1)
|
|
43
|
+
netrc (0.11.0)
|
|
44
|
+
power_assert (2.0.1)
|
|
45
|
+
rake (12.3.3)
|
|
46
|
+
rest-client (2.1.0)
|
|
47
|
+
http-accept (>= 1.7.0, < 2.0)
|
|
48
|
+
http-cookie (>= 1.0.2, < 2.0)
|
|
49
|
+
mime-types (>= 1.16, < 4.0)
|
|
50
|
+
netrc (~> 0.8)
|
|
51
|
+
ruby-progressbar (1.11.0)
|
|
52
|
+
serverengine (2.3.2)
|
|
53
|
+
sigdump (~> 0.2.2)
|
|
54
|
+
sigdump (0.2.4)
|
|
55
|
+
strptime (0.2.5)
|
|
56
|
+
test-unit (3.5.0)
|
|
57
|
+
power_assert
|
|
58
|
+
tzinfo (2.0.6)
|
|
59
|
+
concurrent-ruby (~> 1.0)
|
|
60
|
+
tzinfo-data (1.2023.3)
|
|
61
|
+
tzinfo (>= 1.0.0)
|
|
62
|
+
unf (0.1.4)
|
|
63
|
+
unf_ext
|
|
64
|
+
unf_ext (0.0.8)
|
|
65
|
+
webrick (1.8.1)
|
|
66
|
+
yajl-ruby (1.4.3)
|
|
67
|
+
|
|
68
|
+
PLATFORMS
|
|
69
|
+
ruby
|
|
70
|
+
|
|
71
|
+
DEPENDENCIES
|
|
72
|
+
bundler (~> 1.14)
|
|
73
|
+
fluent-plugin-jfrog-metrics!
|
|
74
|
+
minitest
|
|
75
|
+
minitest-reporters (>= 0.5.0)
|
|
76
|
+
rake (~> 12.0)
|
|
77
|
+
rest-client (>= 2.1.0)
|
|
78
|
+
test-unit (~> 3.0)
|
|
79
|
+
|
|
80
|
+
BUNDLED WITH
|
|
81
|
+
1.17.3
|
|
@@ -3,19 +3,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = 'fluent-plugin-jfrog-metrics'
|
|
6
|
-
spec.version = '0.2.
|
|
6
|
+
spec.version = '0.2.16'
|
|
7
7
|
spec.authors = ['MahithaB, BenHarosh']
|
|
8
8
|
spec.email = ['cpe-support@jfrog.com']
|
|
9
9
|
|
|
10
|
-
spec.summary = %q{Fluentd Plugin for converting JFrog Artifactory, Xray generated metrics (Prometheus Exposition Format) to target observability platform format (Splunk HEC, New Relic, DataDog)}
|
|
11
|
-
spec.description = %q{Fluentd Plugin for converting JFrog Artifactory, Xray generated metrics (Prometheus Exposition Format) to target observability platform format (Splunk HEC, New Relic, DataDog)}
|
|
10
|
+
spec.summary = %q{Fluentd Plugin for converting JFrog Artifactory, Xray, RTFS generated metrics (Prometheus Exposition Format) to target observability platform format (Splunk HEC, New Relic, DataDog)}
|
|
11
|
+
spec.description = %q{Fluentd Plugin for converting JFrog Artifactory, Xray, RTFS generated metrics (Prometheus Exposition Format) to target observability platform format (Splunk HEC, New Relic, DataDog)}
|
|
12
12
|
|
|
13
13
|
spec.homepage = 'https://github.com/jfrog/jfrog-fluentd-plugins/tree/main/fluent-plugin-jfrog-metrics'
|
|
14
14
|
spec.license = 'Apache-2.0'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
test_files, files = `git ls-files -z`.split("\x0").partition do |f|
|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
|
18
|
+
end
|
|
19
|
+
spec.files = files
|
|
20
|
+
spec.executables = files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
21
|
+
spec.test_files = test_files
|
|
19
22
|
spec.require_paths = ['lib']
|
|
20
23
|
|
|
21
24
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
|
@@ -28,6 +28,7 @@ RSpec.describe DatadogMetricsParser do
|
|
|
28
28
|
|
|
29
29
|
hash_data_array = parser.format_data(cleaned_data, 'jfrog.artifactory', '.')
|
|
30
30
|
expect(hash_data_array.size).to be 1
|
|
31
|
+
expect(hash_data_array[0]['series'].size).to be > 1
|
|
31
32
|
|
|
32
33
|
serialized_data = parser.serialize_data(hash_data_array)
|
|
33
34
|
expect(serialized_data.size).to be 1
|
|
@@ -47,16 +48,17 @@ RSpec.describe DatadogMetricsParser do
|
|
|
47
48
|
|
|
48
49
|
hash_data_array = parser.format_data(cleaned_data, 'jfrog.xray', '.')
|
|
49
50
|
expect(hash_data_array.size).to be 1
|
|
51
|
+
expect(hash_data_array[0]['series'].size).to be > 1
|
|
50
52
|
|
|
51
53
|
serialized_data = parser.serialize_data(hash_data_array)
|
|
52
54
|
expect(serialized_data.size).to be 1
|
|
53
55
|
end
|
|
54
56
|
|
|
55
|
-
it 'should
|
|
56
|
-
platform_metrics = File.read('./spec/fixtures/files/
|
|
57
|
+
it 'should parse RTFS metrics with jfrog.rtfs prefix and verify all metric names are prefixed' do
|
|
58
|
+
platform_metrics = File.read('./spec/fixtures/files/sample_artifactory_metrics.txt')
|
|
57
59
|
expect(platform_metrics.size).to be > 1
|
|
58
60
|
|
|
59
|
-
parser = DatadogMetricsParser.new('jfrog.
|
|
61
|
+
parser = DatadogMetricsParser.new('jfrog.rtfs', '', 'jfrog.metrics.rtfs')
|
|
60
62
|
|
|
61
63
|
normalized_data = parser.normalise_data(platform_metrics)
|
|
62
64
|
expect(normalized_data.size).to be > 1
|
|
@@ -64,44 +66,35 @@ RSpec.describe DatadogMetricsParser do
|
|
|
64
66
|
cleaned_data = parser.clean_data(normalized_data)
|
|
65
67
|
expect(cleaned_data.size).to be > 1
|
|
66
68
|
|
|
67
|
-
hash_data_array = parser.format_data(cleaned_data, 'jfrog.
|
|
69
|
+
hash_data_array = parser.format_data(cleaned_data, 'jfrog.rtfs', '.')
|
|
68
70
|
expect(hash_data_array.size).to be 1
|
|
71
|
+
expect(hash_data_array[0]['series'].size).to be > 1
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
series_array.each do |metric|
|
|
74
|
-
expect(metric['metric']).to start_with('jfrog.artifactory.')
|
|
75
|
-
expect(metric['metric']).not_to include('{')
|
|
73
|
+
hash_data_array[0]['series'].each do |metric|
|
|
74
|
+
expect(metric['metric']).to start_with('jfrog.rtfs.')
|
|
76
75
|
expect(metric['points']).not_to be_nil
|
|
77
76
|
expect(metric['points'].size).to be >= 1
|
|
77
|
+
expect(metric['points'][0]['value']).to be_a(Numeric)
|
|
78
78
|
end
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
it 'should parse single metric with nested braces correctly' do
|
|
82
|
-
metric_line = 'db_query_large_total{action="/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}",application="Artifactory",group="download",package="nuget"} 2.0 1711100784000'
|
|
83
79
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
expect(result.size).to eq(1)
|
|
88
|
-
series = result[0]['series']
|
|
89
|
-
expect(series.size).to eq(1)
|
|
90
|
-
expect(series[0]['metric']).to eq('jfrog.artifactory.db_query_large_total')
|
|
91
|
-
expect(series[0]['points'][0]['value']).to eq(2.0)
|
|
92
|
-
expect(series[0]['tags']).to include('action:/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}')
|
|
93
|
-
expect(series[0]['tags']).to include('application:Artifactory')
|
|
80
|
+
serialized_data = parser.serialize_data(hash_data_array)
|
|
81
|
+
expect(serialized_data.size).to be 1
|
|
94
82
|
end
|
|
95
83
|
|
|
96
|
-
it 'should
|
|
97
|
-
|
|
84
|
+
it 'should parse a single RTFS metric line correctly' do
|
|
85
|
+
single_metric = "sys_memory_used_bytes 3836522496 1645738619452"
|
|
98
86
|
|
|
99
|
-
parser = DatadogMetricsParser.new('jfrog.
|
|
87
|
+
parser = DatadogMetricsParser.new('jfrog.rtfs', '', 'jfrog.metrics.rtfs')
|
|
88
|
+
|
|
89
|
+
hash_data_array = parser.format_data([single_metric], 'jfrog.rtfs', '.')
|
|
90
|
+
expect(hash_data_array.size).to be 1
|
|
91
|
+
expect(hash_data_array[0]['series'].size).to be 1
|
|
100
92
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
metric = hash_data_array[0]['series'][0]
|
|
94
|
+
expect(metric['metric']).to eq('jfrog.rtfs.sys_memory_used_bytes')
|
|
95
|
+
expect(metric['points'][0]['value']).to eq(3836522496)
|
|
96
|
+
expect(metric['points'][0]['timestamp']).to eq(1645738619)
|
|
97
|
+
expect(metric['type']).to eq(3)
|
|
105
98
|
end
|
|
106
99
|
end
|
|
107
100
|
end
|
|
@@ -52,11 +52,11 @@ RSpec.describe NewRelicMetricsParser do
|
|
|
52
52
|
expect(serialized_data.size).to be 1
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
it 'should
|
|
56
|
-
platform_metrics = File.read('./spec/fixtures/files/
|
|
55
|
+
it 'should parse RTFS metrics with jfrog.rtfs prefix and verify all metric names are prefixed' do
|
|
56
|
+
platform_metrics = File.read('./spec/fixtures/files/sample_artifactory_metrics.txt')
|
|
57
57
|
expect(platform_metrics.size).to be > 1
|
|
58
58
|
|
|
59
|
-
parser = NewRelicMetricsParser.new('jfrog.
|
|
59
|
+
parser = NewRelicMetricsParser.new('jfrog.rtfs', '', 'jfrog.metrics.rtfs')
|
|
60
60
|
|
|
61
61
|
normalized_data = parser.normalise_data(platform_metrics)
|
|
62
62
|
expect(normalized_data.size).to be > 1
|
|
@@ -64,32 +64,16 @@ RSpec.describe NewRelicMetricsParser do
|
|
|
64
64
|
cleaned_data = parser.clean_data(normalized_data)
|
|
65
65
|
expect(cleaned_data.size).to be > 1
|
|
66
66
|
|
|
67
|
-
hash_data_array = parser.format_data(cleaned_data, 'jfrog.
|
|
67
|
+
hash_data_array = parser.format_data(cleaned_data, 'jfrog.rtfs', '.')
|
|
68
68
|
expect(hash_data_array.size).to be 1
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
metrics_array.each do |metric|
|
|
74
|
-
expect(metric['name']).to start_with('jfrog.artifactory.')
|
|
75
|
-
expect(metric['name']).not_to include('{')
|
|
76
|
-
expect(metric['value']).not_to be_nil
|
|
70
|
+
hash_data_array[0]['metrics'].each do |metric|
|
|
71
|
+
expect(metric['name']).to start_with('jfrog.rtfs.')
|
|
72
|
+
expect(metric['value']).to be_a(Numeric)
|
|
77
73
|
end
|
|
78
|
-
end
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
parser = NewRelicMetricsParser.new('jfrog.artifactory', '', 'jfrog.artifactory.metrics')
|
|
84
|
-
result = parser.format_data([metric_line], 'jfrog.artifactory', '.')
|
|
85
|
-
|
|
86
|
-
expect(result.size).to eq(1)
|
|
87
|
-
metrics = result[0]['metrics']
|
|
88
|
-
expect(metrics.size).to eq(1)
|
|
89
|
-
expect(metrics[0]['name']).to eq('jfrog.artifactory.db_query_large_total')
|
|
90
|
-
expect(metrics[0]['value']).to eq(2.0)
|
|
91
|
-
expect(metrics[0]['attributes']['action']).to eq('/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}')
|
|
92
|
-
expect(metrics[0]['attributes']['application']).to eq('Artifactory')
|
|
75
|
+
serialized_data = parser.serialize_data(hash_data_array)
|
|
76
|
+
expect(serialized_data.size).to be 1
|
|
93
77
|
end
|
|
94
78
|
end
|
|
95
79
|
end
|
|
@@ -52,11 +52,11 @@ RSpec.describe SplunkMetricsParser do
|
|
|
52
52
|
expect(serialized_data.size).to be > 1
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
it 'should
|
|
56
|
-
platform_metrics = File.read('./spec/fixtures/files/
|
|
55
|
+
it 'should parse RTFS metrics with jfrog.rtfs prefix and verify all metric names are prefixed' do
|
|
56
|
+
platform_metrics = File.read('./spec/fixtures/files/sample_artifactory_metrics.txt')
|
|
57
57
|
expect(platform_metrics.size).to be > 1
|
|
58
58
|
|
|
59
|
-
parser = SplunkMetricsParser.new('jfrog.
|
|
59
|
+
parser = SplunkMetricsParser.new('jfrog.rtfs', '', 'jfrog.metrics.rtfs')
|
|
60
60
|
|
|
61
61
|
normalized_data = parser.normalise_data(platform_metrics)
|
|
62
62
|
expect(normalized_data.size).to be > 1
|
|
@@ -64,26 +64,16 @@ RSpec.describe SplunkMetricsParser do
|
|
|
64
64
|
cleaned_data = parser.clean_data(normalized_data)
|
|
65
65
|
expect(cleaned_data.size).to be > 1
|
|
66
66
|
|
|
67
|
-
hash_data_array = parser.format_data(cleaned_data, 'jfrog.
|
|
67
|
+
hash_data_array = parser.format_data(cleaned_data, 'jfrog.rtfs', '.')
|
|
68
68
|
expect(hash_data_array.size).to be > 1
|
|
69
69
|
|
|
70
|
-
hash_data_array.each do |
|
|
71
|
-
expect(
|
|
72
|
-
expect(
|
|
73
|
-
expect(metric_hash['value']).not_to be_nil
|
|
70
|
+
hash_data_array.each do |metric|
|
|
71
|
+
expect(metric['metric_name']).to start_with('jfrog.rtfs.')
|
|
72
|
+
expect(metric['value']).to be_a(Numeric)
|
|
74
73
|
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
it 'should parse single metric with nested braces correctly' do
|
|
78
|
-
metric_line = 'db_query_large_total{action="/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}",application="Artifactory",group="download",package="nuget"} 2.0 1711100784000'
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
expect(result['metric_name']).to eq('jfrog.artifactory.db_query_large_total')
|
|
84
|
-
expect(result['value']).to eq(2.0)
|
|
85
|
-
expect(result['action']).to eq('/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}')
|
|
86
|
-
expect(result['application']).to eq('Artifactory')
|
|
75
|
+
serialized_data = parser.serialize_data(hash_data_array)
|
|
76
|
+
expect(serialized_data.size).to be > 1
|
|
87
77
|
end
|
|
88
78
|
end
|
|
89
79
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-jfrog-metrics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MahithaB, BenHarosh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -100,17 +100,20 @@ dependencies:
|
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: 2.1.0
|
|
103
|
-
description: Fluentd Plugin for converting JFrog Artifactory, Xray generated
|
|
104
|
-
(Prometheus Exposition Format) to target observability platform format (Splunk
|
|
105
|
-
New Relic, DataDog)
|
|
103
|
+
description: Fluentd Plugin for converting JFrog Artifactory, Xray, RTFS generated
|
|
104
|
+
metrics (Prometheus Exposition Format) to target observability platform format (Splunk
|
|
105
|
+
HEC, New Relic, DataDog)
|
|
106
106
|
email:
|
|
107
107
|
- cpe-support@jfrog.com
|
|
108
108
|
executables: []
|
|
109
109
|
extensions: []
|
|
110
110
|
extra_rdoc_files: []
|
|
111
111
|
files:
|
|
112
|
+
- ".gitignore"
|
|
113
|
+
- ".rspec"
|
|
112
114
|
- CHANGELOG.md
|
|
113
115
|
- Gemfile
|
|
116
|
+
- Gemfile.lock
|
|
114
117
|
- LICENSE
|
|
115
118
|
- README.md
|
|
116
119
|
- Rakefile
|
|
@@ -124,7 +127,6 @@ files:
|
|
|
124
127
|
- lib/fluent/plugin/splunk_metrics_parser.rb
|
|
125
128
|
- spec/fixtures/files/creds.rb
|
|
126
129
|
- spec/fixtures/files/sample_artifactory_metrics.txt
|
|
127
|
-
- spec/fixtures/files/sample_metrics_with_nested_braces.txt
|
|
128
130
|
- spec/fixtures/files/sample_xray_metrics.txt
|
|
129
131
|
- spec/lib/datadog_metrics_parser_spec.rb
|
|
130
132
|
- spec/lib/metrics_helper_spec.rb
|
|
@@ -155,18 +157,17 @@ requirements: []
|
|
|
155
157
|
rubygems_version: 3.0.3.1
|
|
156
158
|
signing_key:
|
|
157
159
|
specification_version: 4
|
|
158
|
-
summary: Fluentd Plugin for converting JFrog Artifactory, Xray generated metrics
|
|
159
|
-
Exposition Format) to target observability platform format (Splunk HEC,
|
|
160
|
-
DataDog)
|
|
160
|
+
summary: Fluentd Plugin for converting JFrog Artifactory, Xray, RTFS generated metrics
|
|
161
|
+
(Prometheus Exposition Format) to target observability platform format (Splunk HEC,
|
|
162
|
+
New Relic, DataDog)
|
|
161
163
|
test_files:
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
- spec/
|
|
164
|
+
- spec/fixtures/files/creds.rb
|
|
165
|
+
- spec/fixtures/files/sample_artifactory_metrics.txt
|
|
166
|
+
- spec/fixtures/files/sample_xray_metrics.txt
|
|
165
167
|
- spec/lib/datadog_metrics_parser_spec.rb
|
|
166
|
-
- spec/lib/splunk_metrics_parser_spec.rb
|
|
167
168
|
- spec/lib/metrics_helper_spec.rb
|
|
168
169
|
- spec/lib/newrelic_metrics_parser_spec.rb
|
|
169
|
-
- spec/
|
|
170
|
-
- spec/
|
|
171
|
-
-
|
|
172
|
-
-
|
|
170
|
+
- spec/lib/splunk_metrics_parser_spec.rb
|
|
171
|
+
- spec/spec_helper.rb
|
|
172
|
+
- test/helper.rb
|
|
173
|
+
- test/plugin/test_in_jfrog_metrics.rb
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# HELP db_query_large_total Total large queries
|
|
2
|
-
# UPDATED db_query_large_total 1711100784000
|
|
3
|
-
# TYPE db_query_large_total counter
|
|
4
|
-
db_query_large_total{action="/artifactory/api/nuget/{repoKey}/Download/{packageId}/{packageVersion}",application="Artifactory",group="download",package="nuget"} 2.0 1711100784000
|
|
5
|
-
# HELP db_query_large_total_alt Alternative large queries with different template
|
|
6
|
-
# UPDATED db_query_large_total_alt 1711100784000
|
|
7
|
-
# TYPE db_query_large_total_alt counter
|
|
8
|
-
db_query_large_total{action="/artifactory/api/artifactproperties{name:(/[^/]+?)?}",application="Artifactory",group="",package=""} 1.0 1711100784000
|
|
9
|
-
# HELP jfrt_http_connections_available_total Available HTTP Connections
|
|
10
|
-
# UPDATED jfrt_http_connections_available_total 1711100784000
|
|
11
|
-
# TYPE jfrt_http_connections_available_total gauge
|
|
12
|
-
jfrt_http_connections_available_total{instance="node1",port="8081"} 50 1711100784000
|