Giter Club home page Giter Club logo

fluent-plugin-kubernetes-metrics's Introduction

Fluentd Plugin for Kubernetes Metrics

The Fluentd input plugin collects Kubernetes cluster metrics which are exposed by the Kubelet API and forwards them to fluentd. The plugin collects metrics from:

  • The kubelet summary API
  • The kubelet stats API
  • The cAdvisor metrics API

The Fluentd input plugin can be configured to fetch metrics from the Kubernetes API server or from the Kubelet. For more details on the specific metrics that are collected and aggregated with this plugin, please refer to the metrics information document.

Installation

See: Plugin Management.

RubyGems

$ gem install fluent-plugin-kubernetes-metrics

Bundler

Add the following line to your Gemfile:

gem "fluent-plugin-kubernetes-metrics"

Then execute:

$ bundle

Plugin helpers

Fluent::Plugin::KubernetesMetricsInput

tag (string) (optional)

The tag for the event.

Default value: kubernetes.metrics.*.

interval (time) (optional)

How often the plugin should pull metrcs.

Default value: 15s.

kubeconfig (string) (optional)

Path to a kubeconfig file that points to a cluster from which the plugin should collect metrics. Mostly useful when running fluentd outside of the cluster. When kubeconfig is set, kubernetes_url, client_cert, client_key, ca_file, insecure_ssl, bearer_token_file, and secret_dir are ignored.

kubernetes_url (string) (optional)

URL of the kubernetes API server.

client_cert (string) (optional)

Path to the certificate file for this client.

client_key (string) (optional)

Path to the private key file for this client.

ca_file (string) (optional)

Path to the CA file.

insecure_ssl (bool) (optional)

If insecure_ssl is set to true, apiserver's certificate is not verified.

bearer_token_file (string) (optional)

Path to the file that contains the API token. The default value is the file "token" in secret_dir.

secret_dir (string) (optional)

Path of the location where the pod's service account credentials are stored.

Default value: /var/run/secrets/kubernetes.io/serviceaccount.

node_name (string) (required)

The name of the node from which the plugin should collect metrics. This enables the plugin to fetch metrics from a kubelet API. Used only when the use_rest_client configuration parameter is enabled.

node_names Array(string) (required)

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.

kubelet_address (string) (optional)

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).

Default value: "#{ENV['KUBERNETES_NODE_IP']}".

kubelet_port (integer) (optional)

The port that kubelet is listening on.

Default value: 10250.

use_rest_client (bool) (optional)

Enable to use the rest client to get the metrics from summary api on each kubelet.

Default value: true.

use_rest_client_ssl (bool) (optional)

Enable to use SSL for rest client.

Default value: true.

License

See License.

fluent-plugin-kubernetes-metrics's People

Contributors

aryznar-splunk avatar chaitanyaphalak avatar dbaldwin-splunk avatar dependabot[bot] avatar foram-splunk avatar gp510 avatar hbrewster-splunk avatar hvaghani221 avatar inthemuse avatar jenworthington avatar luckyj5 avatar mwang2016 avatar rockb1017 avatar splunk-oss-admin avatar splunk-pwu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.