-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
config.yml
84 lines (81 loc) · 2.55 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Node metrics, from kubelet:
- module: kubernetes
#metricsets:
# - node
# - system
# - pod
# - container
# - volume
period: 10s
hosts: ["localhost:10250"]
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
ssl.certificate_authorities:
- /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
#username: "user"
#password: "secret"
# Enriching parameters:
#add_metadata: true
#labels.dedot: true
#annotations.dedot: true
# When used outside the cluster:
#node: node_name
# If kube_config is not set, KUBECONFIG environment variable will be checked
# and if not present it will fall back to InCluster
#kube_config: ~/.kube/config
# Set the namespace to watch for resources
#namespace: staging
# To configure additionally node and namespace metadata, added to pod, service and container resource types,
# `add_resource_metadata` can be defined.
# By default all labels will be included while annotations are not added by default.
# add_resource_metadata:
# namespace:
# include_labels: ["namespacelabel1"]
# node:
# include_labels: ["nodelabel2"]
# include_annotations: ["nodeannotation1"]
# deployment: false
# cronjob: false
# Kubernetes client QPS and burst can be configured additionally
#kube_client_options:
# qps: 5
# burst: 10
# State metrics from kube-state-metrics service:
#- module: kubernetes
# metricsets:
# - state_node
# - state_deployment
# - state_replicaset
# - state_statefulset
# - state_pod
# - state_container
# - state_job
# - state_cronjob
# - state_resourcequota
# - state_service
# - state_persistentvolume
# - state_persistentvolumeclaim
# - state_storageclass
# period: 10s
# hosts: ["kube-state-metrics:8080"]
# add_metadata: true
# Kubernetes Events
#- module: kubernetes
# enabled: true
# metricsets:
# - event
# period: 10s
# # Skip events older than Metricbeat's statup time is enabled by default.
# # Setting to false the skip_older setting will stop filtering older events.
# # This setting is also useful went Event's timestamps are not populated properly.
# skip_older: false
# # If kube_config is not set, KUBECONFIG environment variable will be checked
# # and if not present it will fall back to InCluster
# kube_config: ~/.kube/config
# # Set the namespace to watch for events
# namespace: staging
# # Set the sync period of the watchers
# sync_period: 10m
# # Kubernetes client QPS and burst can be configured additionally
# kube_client_options:
# qps: 5
# burst: 10