Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,91 +1,92 @@
PATH
remote: .
specs:
fluent-plugin-kubernetes-metrics (1.1.4)
fluentd (~> 1.9.1)
fluent-plugin-kubernetes-metrics (1.1.5)
fluentd (>= 1.9.1)
kubeclient (~> 4.6.0)
multi_json (~> 1.14.1)
oj (~> 3.10.2)

GEM
remote: https://rubygems.org/
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
concurrent-ruby (1.1.6)
cool.io (1.6.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
docile (1.3.1)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
concurrent-ruby (1.1.8)
cool.io (1.7.1)
crack (0.4.5)
rexml
docile (1.3.5)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
ffi (1.12.2)
ffi (1.14.2)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
fluentd (1.9.2)
fluentd (1.12.1)
bundler
cool.io (>= 1.4.5, < 2.0.0)
http_parser.rb (>= 0.5.1, < 0.7.0)
msgpack (>= 1.3.1, < 2.0.0)
serverengine (>= 2.0.4, < 3.0.0)
serverengine (>= 2.2.2, < 3.0.0)
sigdump (~> 0.2.2)
strptime (>= 0.2.2, < 1.0.0)
tzinfo (>= 1.0, < 3.0)
tzinfo-data (~> 1.0)
yajl-ruby (~> 1.0)
hashdiff (0.3.8)
http (4.3.0)
hashdiff (1.0.1)
http (4.4.1)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
http-parser (~> 1.2.0)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
http-form_data (2.2.0)
http-parser (1.2.1)
http-form_data (2.3.0)
http-parser (1.2.3)
ffi-compiler (>= 1.0, < 2.0)
http_parser.rb (0.6.0)
json (2.3.1)
json (2.5.1)
kubeclient (4.6.0)
http (>= 3.0, < 5.0)
recursive-open-struct (~> 1.0, >= 1.0.4)
rest-client (~> 2.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.1009)
msgpack (1.3.3)
mime-types-data (3.2021.0225)
msgpack (1.4.2)
multi_json (1.14.1)
netrc (0.11.0)
oj (3.10.2)
power_assert (1.1.3)
public_suffix (3.0.3)
rake (13.0.1)
recursive-open-struct (1.1.0)
oj (3.10.18)
power_assert (2.0.0)
public_suffix (4.0.6)
rake (13.0.3)
recursive-open-struct (1.1.3)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
safe_yaml (1.0.4)
serverengine (2.2.1)
rexml (3.2.4)
serverengine (2.2.3)
sigdump (~> 0.2.2)
sigdump (0.2.4)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
strptime (0.2.3)
test-unit (3.3.0)
strptime (0.2.5)
test-unit (3.3.9)
power_assert
tzinfo (2.0.1)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2019.3)
tzinfo-data (1.2021.1)
tzinfo (>= 1.0.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.6)
unf_ext (0.0.7.7)
webmock (3.5.1)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VERSION := $(shell sh -c 'cat VERSION')
NODEJS_VERSION := 14.15.1

clean_pkg:
@rm -rf pkg/* docker/*.gem
Expand All @@ -16,7 +17,7 @@ docker: build install-deps
@cp pkg/fluent-plugin-*.gem docker
@mkdir -p docker/licenses
@cp -rp LICENSE docker/licenses/
@docker build --no-cache --pull --build-arg VERSION=$(VERSION) -t splunk/k8s-metrics:$(VERSION) ./docker
@docker build --no-cache --pull --build-arg VERSION=$(VERSION) --build-arg NODEJS_VERSION=$(NODEJS_VERSION) -t splunk/k8s-metrics:$(VERSION) ./docker

unit-test:
@bundle exec rake test
Expand All @@ -28,5 +29,7 @@ install-deps:

unpack: build
@cp pkg/fluent-plugin-*.gem docker
@mkdir -p docker/gem
@rm -rf docker/gem/*
@gem unpack docker/fluent-plugin-*.gem --target docker/gem
@cd docker && bundle install
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.4
1.1.5
11 changes: 8 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.access.redhat.com/ubi8/ruby-25
FROM registry.access.redhat.com/ubi8/ruby-27

ARG VERSION
ARG NODEJS_VERSION

LABEL name="Splunk Connect for Kubernetes Metrics container" \
maintainer="DataEdge@splunk.com" \
Expand All @@ -19,9 +20,13 @@ COPY *.gem /tmp/
COPY licenses /licenses

COPY Gemfile* ./
RUN gem install bundler \
RUN yum update -y \
&& npm install -g n \
&& yum remove -y nodejs \
&& n ${NODEJS_VERSION} \
&& gem install bundler \
&& gem unpack /tmp/*.gem --target gem \
&& bundle install
&& bundle install

RUN groupadd -r $FLUENT_USER && \
useradd -r -g $FLUENT_USER $FLUENT_USER && \
Expand Down
12 changes: 6 additions & 6 deletions docker/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ source 'https://rubygems.org'
# This is separate gemfile for building docker image that has all plugins
# for kubernetes log collection agent
# List all required gems here and install via bundler to resolve dependencies
gem "fluentd", "=1.9.1"
gem "fluent-plugin-prometheus", "=1.7.0"
gem "fluentd", "=1.11.5"
gem "fluent-plugin-prometheus", "=1.8.5"
gem "fluent-plugin-record-modifier", "=2.1.0"

gem "fluent-plugin-kubernetes_metadata_filter", "=2.5.3"
gem "fluent-plugin-jq", "=0.5.1"
gem "oj", "=3.10.2"
gem "oj", "=3.10.18"
gem 'multi_json', '=1.14.1'
gem 'bigdecimal', '=2.0.0'
gem 'bigdecimal', '=3.0.0'
gem 'kubeclient', '=4.6.0'
gem 'http_parser.rb', '=0.5.3'

gem "fluent-plugin-splunk-hec", "= 1.2.3"
gem "fluent-plugin-splunk-hec", ">= 1.2.5"
gem 'fluent-plugin-kubernetes-metrics', path: 'gem/'
Loading