-
Notifications
You must be signed in to change notification settings - Fork 1
/
metricbeat.yml
206 lines (195 loc) · 6.74 KB
/
metricbeat.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to
# change these as per your elasticsearch host IP
hosts: ["192.168.1.28:9200", "192.168.1.29:9200", "192.168.1.30:9200"]
index: "metrics-%{[beat.version]}-%{+yyyy.MM.dd}"
# Optional protocol and basic auth credentials.
username: "username"
password: "password"
metricbeat.modules:
#------------------------------- Jolokia Module ------------------------------
- module: jolokia
metricsets: ["jmx"]
enabled: true
period: 10s
hosts: ["192.168.1.23:8661", "localhost:8661"]
namespace: "metrics"
path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
jmx.mappings:
- mbean: 'java.lang:type=ClassLoading'
attributes:
- attr: LoadedClassCount
field: loadedclasscount
- attr: UnloadedClassCount
field: unloadedclasscount
- attr: TotalLoadedClassCount
field: totalloadedclassCount
- mbean: 'java.lang:type=GarbageCollector,name=*'
attributes:
- attr: Name
field: gcname
- attr: CollectionCount
field: collectioncount
- attr: CollectionTime
field: collectiontime
- attr: LastGcInfo
field: lastgcinfo
- attr: MemoryPoolNames
field: memorypoolnames
- mbean: 'java.lang:type=Memory'
attributes:
- attr: HeapMemoryUsage
field: heapmemoryusage
- attr: NonHeapMemoryUsage
field: nonheapmemoryusage
- mbean: 'java.lang:type=MemoryPool,name=*'
attributes:
- attr: Name
field: poolname
- attr: Usage
field: usage
- attr: PeakUsage
field: peakusage
- attr: MemoryManagerNames
field: memorymanagernames
- attr: UsageThreshold
field: usagethreshold
- attr: UsageThresholdExceeded
field: usagethresholdexceeded
- attr: UsageThresholdCount
field: usagethresholdcount
- attr: UsageThresholdSupported
field: usagethresholdsupported
- attr: CollectionUsage
field: collectionusage
- attr: CollectionUsageThreshold
field: collectionusagethreshold
- attr: CollectionUsageThresholdExceeded
field: collectionusagethresholdexceeded
- attr: CollectionUsageThresholdCount
field: collectionusagethresholdcount
- attr: CollectionUsageThresholdSupported
field: collectionusagethresholdsupported
- mbean: 'java.lang:type=OperatingSystem'
attributes:
- attr: Name
field: name
- attr: OpenFileDescriptorCount
field: openfiledescriptorcount
- attr: MaxFileDescriptorCount
field: maxfiledescriptorcount
- attr: CommittedVirtualMemorySize
field: committedvirtualmemorysize
- attr: TotalSwapSpaceSize
field: totalswapspacesize
- attr: FreeSwapSpaceSize
field: freeswapspacesize
- attr: ProcessCpuLoad
field: processcpuload
- attr: SystemCpuLoad
field: systemcpuload
- attr: SystemLoadAverage
field: systemloadaverage
- attr: AvailableProcessors
field: availableprocessors
- attr: Arch
field: arch
- mbean: 'java.lang:type=Runtime'
attributes:
- attr: Name
field: name
- attr: bootclasspathsupported
field: bootclasspathsupported
- attr: VmName
field: vmname
- attr: VmVendor
field: vmvendor
- attr: VmVersion
field: vmversion
- attr: LibraryPath
field: librarypath
- attr: BootClassPath
field: bootclasspath
- attr: Uptime
field: uptime
- attr: StartTime
field: starttime
- attr: SpecName
field: specname
- attr: SpecVendor
field: specvendor
- attr: SpecVersion
field: specversion
- attr: ManagementSpecVersion
field: managementspecversion
- attr: InputArguments
field: inputarguments
- attr: SystemProperties
field: systemproperties
- attr: ClassPath
field: classpath
- mbean: 'java.lang:type=Threading'
attributes:
- attr: ThreadAllocatedMemorySupported
field: threadallocatedmemorysupported
- attr: ThreadAllocatedMemoryEnabled
field: threadallocatedmemoryenabled
- attr: ThreadContentionMonitoringSupported
field: threadcontentionmonitoringsupported
- attr: CurrentThreadCpuTimeSupported
field: currentthreadcputimesupported
- attr: ObjectMonitorUsageSupported
field: objectmonitorusagesupported
- attr: SynchronizerUsageSupported
field: synchronizerusagesupported
- attr: ThreadContentionMonitoringEnabled
field: threadcontentionmonitoringenabled
- attr: ThreadCpuTimeEnabled
field: threadcputimeenabled
- attr: PeakThreadCount
field: peakthreadcount
- attr: DaemonThreadCount
field: daemonthreadcount
- attr: ThreadCount
field: threadcount
- attr: TotalStartedThreadCount
field: totalstartedthreadcount
- attr: AllThreadIds
field: allthreadIds
- attr: CurrentThreadCpuTime
field: currentthreadcputime
- attr: CurrentThreadUserTime
field: currentthreadusertime
- attr: ThreadCpuTimeSupported
field: threadcputimesupported
#- mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
# attributes:
# - attr: CollectionTime
# field: gc.cms_collection_time
# - attr: CollectionCount
# field: gc.cms_collection_count
jmx.application:
jmx.instance:
#============================== Kibana =====================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# Kibana Host
# change the host address as per your kibana host
# host: "localhost:5601"
host: "http://192.168.1.28:5601"
username: username
password: password
setup.dashboards:
enabled: true
#directory: The directory that contains the dashboards to load. The default is the kibana folder in the metricbeat home path
#You can copy custom dashboard to the default path so that it gets loaded at startup
# If it is in a different folder you can set the path as shown below
#directory: /home/elastic/metricbeat-6.5.4-linux-x86_64/custom_dashboard
always_kibana: true
beat: ""
index: "metrics-*"
retry.enabled: true
retry.interval: 5s
retry.maximum: 5