Fluentd input plugin collects kubernetes cluster metrics from the kubeapiserver API. The API is exposed by KubeApiServer on a kubernetes cluster.
See also: Plugin Management.
$ gem install fluent-plugin-k8s-metrics-agg
Add following line to your Gemfile:
gem "fluent-plugin-k8s-metrics-agg"
And then execute:
$ bundle
-
See also: Input Plugin Overview
The event tag.
Default value: kubernetes.metrics.*
.
How often the plugin pulls metrcs.
Default value: 15s
.
The path to a kubeconfig file points to a cluster from which the plugin should collect metrics. This is mostly useful when running fluentd outside of the cluster. When kubeconfig
is set, the kubernetes_url
, client_cert
, client_key
, ca_file
, insecure_ssl
, bearer_token_file
, and secret_dir
are ignored.
The path to the certificate file for this client.
The path to the private key file for this client.
The path to the CA file.
When insecure_ssl
is set to true
, the plugin does not verify the apiserver's certificate.
The path to the file contains the API token. By default the plugin reads from the file "token" in the secret_dir
.
The path to the location of the pod's service account credentials.
Default value: /var/run/secrets/kubernetes.io/serviceaccount
.
The port that the kubelet is listening to.
Default value: 10255
.
The name of the cluster where the plugin is deployed.
Default value: cluster_name
.
See License.