Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 1ce3532

Browse files
Merge pull request #54 from splunk/release/1.1.1
Release/1.1.1
2 parents 56a7a10 + 729f021 commit 1ce3532

14 files changed

+312
-559
lines changed

.circleci/build_and_push_to_dockerhub.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
echo "Building docker image..."
44
cp /tmp/pkg/fluent-plugin-kubernetes-metrics-*.gem docker
55
VERSION=`cat VERSION`
6-
docker build --build-arg VERSION=$VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:ci ./docker
6+
docker build --build-arg VERSION=$FLUENT_SPLUNK_HEC_GEM_VERSION --no-cache -t splunk/fluent-plugin-kubernetes-metrics:ci ./docker
77
docker tag splunk/fluent-plugin-kubernetes-metrics:ci splunk/${DOCKERHUB_REPO_NAME}:${VERSION}
88
echo "Push docker image to splunk dockerhub..."
99
docker login --username=$DOCKERHUB_ACCOUNT_ID --password=$DOCKERHUB_ACCOUNT_PASS
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Report a bug encountered while operating fluent-plugin-kubernetes-metrics
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
11+
12+
Please do not report security vulnerabilities with public GitHub issue reports. Please report security issues here: https://www.splunk.com/goto/report_vulnerabilities_prodsec
13+
-->
14+
15+
16+
**What happened**:
17+
18+
**What you expected to happen**:
19+
20+
**How to reproduce it (as minimally and precisely as possible)**:
21+
22+
**Anything else we need to know?**:
23+
24+
**Environment**:
25+
- Kubernetes version (use `kubectl version`):
26+
- Ruby version (use `ruby --version`):
27+
- OS (e.g: `cat /etc/os-release`):
28+
- Splunk version:
29+
- Others:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Enhancement Request
3+
about: Suggest an enhancement to the fluent-plugin-kubernetes-metrics project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<<!-- Please only use this template for submitting enhancement requests -->
11+
12+
**What would you like to be added**:
13+
14+
**Why is this needed**:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Failing Test
3+
about: Report test failures in fluent-plugin-kubernetes-metrics
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please only use this template for submitting reports about failing tests -->
11+
12+
**Which test(s) are failing**:
13+
14+
**Since when has it been failing**:
15+
16+
**Reason for failure**:
17+
18+
**Anything else we need to know**:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Proposed changes
2+
3+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
4+
5+
## Types of changes
6+
7+
What types of changes does your code introduce?
8+
_Put an `x` in the boxes that apply_
9+
10+
- [ ] Bugfix (non-breaking change which fixes an issue)
11+
- [ ] New feature (non-breaking change which adds functionality)
12+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
13+
14+
## Checklist
15+
16+
_Put an `x` in the boxes that apply._
17+
18+
- [ ] I have read the [CONTRIBUTING](https://github.com/splunk/fluent-plugin-kubernetes-metrics/blob/develop/CONTRIBUTING.md) doc
19+
- [ ] I have read the [CLA](https://github.com/splunk/fluent-plugin-kubernetes-metrics/blob/develop/CLA.md)
20+
- [ ] I have added tests that prove my fix is effective or that my feature works
21+
- [ ] I have added necessary documentation (if appropriate)
22+
- [ ] Any dependent changes have been merged and published in downstream modules
23+

CLA.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
By submitting a Contribution to this Work, You agree that Your Contribution is made subject to the primary LICENSE
2+
file applicable to this Work. In addition, You represent that: (i) You are the copyright owner of the Contribution
3+
or (ii) You have the requisite rights to make the Contribution.
4+
5+
Definitions:
6+
7+
“You” shall mean: (i) yourself if you are making a Contribution on your own behalf; or (ii) your company,
8+
if you are making a Contribution on behalf of your company. If you are making a Contribution on behalf of your
9+
company, you represent that you have the requisite authority to do so.
10+
11+
"Contribution" shall mean any original work of authorship, including any modifications or additions to an existing
12+
work, that is intentionally submitted by You for inclusion in, or documentation of, this project/repository. For the
13+
purposes of this definition, "submitted" means any form of electronic, verbal, or written communication submitted for
14+
inclusion in this project/repository, including but not limited to communication on electronic mailing lists, source
15+
code control systems, and issue tracking systems that are managed by, or on behalf of, the maintainers of
16+
the project/repository.
17+
18+
“Work” shall mean the collective software, content, and documentation in this project/repository.

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PATH
22
remote: .
33
specs:
4-
fluent-plugin-kubernetes-metrics (1.1.0.Alpha)
5-
fluentd (~> 1.3.3)
4+
fluent-plugin-kubernetes-metrics (1.1.0)
5+
fluentd (~> 1.4.0)
66
kubeclient (~> 4.2.2)
77
multi_json (~> 1.13.1)
8-
oj (~> 3.7.8)
8+
oj (~> 3.7.9)
99

1010
GEM
1111
remote: https://rubygems.org/
@@ -19,7 +19,7 @@ GEM
1919
docile (1.3.1)
2020
domain_name (0.5.20180417)
2121
unf (>= 0.0.5, < 1.0.0)
22-
fluentd (1.3.3)
22+
fluentd (1.4.0)
2323
cool.io (>= 1.4.5, < 2.0.0)
2424
dig_rb (~> 1.0.0)
2525
http_parser.rb (>= 0.5.1, < 0.7.0)
@@ -48,10 +48,10 @@ GEM
4848
mime-types (3.2.2)
4949
mime-types-data (~> 3.2015)
5050
mime-types-data (3.2018.0812)
51-
msgpack (1.2.6)
51+
msgpack (1.2.7)
5252
multi_json (1.13.1)
5353
netrc (0.11.0)
54-
oj (3.7.8)
54+
oj (3.7.9)
5555
power_assert (1.1.3)
5656
public_suffix (3.0.3)
5757
rake (12.3.2)
@@ -90,7 +90,7 @@ PLATFORMS
9090
ruby
9191

9292
DEPENDENCIES
93-
bundler (~> 2.0.1)
93+
bundler (~> 2.0.0)
9494
fluent-plugin-kubernetes-metrics!
9595
rake (~> 12.3.2)
9696
simplecov (~> 0.16.1)

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[![CircleCI](https://circleci.com/gh/git-lfs/git-lfs.svg?style=shield&circle-token=856152c2b02bfd236f54d21e1f581f3e4ebf47ad)](https://circleci.com/gh/splunk/fluent-plugin-kubernetes-metrics)
22
# Fluentd Plugin for Kubernetes Metrics
33

4-
The [Fluentd](https://fluentd.org/) input plugin collects kubernetes cluster metrics which are exposed by the [Kubelet API](https://kubernetes.io/docs/admin/kubelet/) and forwards them to fluentd.
4+
The [Fluentd](https://fluentd.org/) input plugin collects Kubernetes cluster metrics which are exposed by the [Kubelet API](https://kubernetes.io/docs/admin/kubelet/) and forwards them to fluentd.
55
The plugin collects metrics from:
66
* The kubelet summary API
77
* The kubelet stats API
88
* The cAdvisor metrics API
99

10-
The Fluentd input plugin can be configured to fetch metrics from either the Kublernetes API server or from the Kubelet itself.
10+
The Fluentd input plugin can be configured to fetch metrics from the Kubernetes API server or from the Kubelet.
11+
For more details on the specific metrics that are collected and aggregated with this plugin, please refer to the
12+
[metrics information](https://github.com/splunk/fluent-plugin-kubernetes-metrics/blob/master/metrics-information.md) document.
1113

1214
## Installation
1315

@@ -95,9 +97,15 @@ The name of the node from which the plugin should collect metrics. This enables
9597

9698
Array of the nodes from which the this plugin should collect metrics. This enables the plugin to fetch metrics from kubeapiserver. Used only when use_rest_client configuration parameter is not enabled.
9799

100+
### kubelet_address (string) (optional)
101+
102+
The hostname or IP address that kubelet will use to connect to. If not supplied, status.hostIP of the node is used to fetch metrics from the Kubelet API (via the $KUBERNETES_NODE_IP environment variable).
103+
104+
Default value: `"#{ENV['KUBERNETES_NODE_IP']}"`.
105+
98106
### kubelet_port (integer) (optional)
99107

100-
The port that kubelet is listening to.
108+
The port that kubelet is listening on.
101109

102110
Default value: `10250`.
103111

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.1

fluent-plugin-kubernetes-metrics.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
1717
spec.executables = files.grep(%r{^bin/}) { |f| File.basename(f) }
1818
spec.test_files = test_files
1919
spec.require_paths = ['lib']
20-
spec.add_development_dependency 'bundler', '~> 2.0.1'
20+
spec.add_development_dependency 'bundler', '~> 2.0.0'
2121
spec.add_development_dependency 'rake', '~> 12.3.2'
2222
spec.add_development_dependency 'simplecov', '~> 0.16.1'
2323
spec.add_development_dependency 'test-unit', '~> 3.3.0'
2424
spec.add_development_dependency 'webmock', '~> 3.5.1'
25-
spec.add_runtime_dependency 'fluentd', '~> 1.3.3'
25+
spec.add_runtime_dependency 'fluentd', '~> 1.4.0'
2626
spec.add_runtime_dependency 'kubeclient', '~> 4.2.2'
2727
spec.add_runtime_dependency 'multi_json', '~> 1.13.1'
28-
spec.add_runtime_dependency 'oj', '~> 3.7.8'
28+
spec.add_runtime_dependency 'oj', '~> 3.7.9'
2929
end

0 commit comments

Comments
 (0)