forked from signalfx/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
20-node-manager.conf
executable file
·71 lines (66 loc) · 2.37 KB
/
20-node-manager.conf
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
# Install:
# Please follow the install instructions of 10-jmx.conf
# Documentation:
# http://kafka.apache.org/documentation.html#monitoring
# https://collectd.org/wiki/index.php/Plugin:Java
# Use for Apache Hadoop 2.7.3 and up.
# System modifications:
# Enable the JMX remote agent when starting HDFS services
# Config file modifications:
# You must include 10-jmx.conf
# Make sure ServiceURL points to your jmx app.
# Modify the "Host" parameter to what you want your source name to be.
# Please leave the identifier [hostHasService=kafka] in the hostname.
<Plugin java>
<Plugin "GenericJMX">
<MBean "hadoop-nodeManager-metrics">
ObjectName "Hadoop:name=NodeManagerMetrics,service=NodeManager"
<Value>
InstancePrefix "hadoop-nodeManager-allocated-memory"
Type "gauge"
Table false
Attribute "AllocatedGB"
</Value>
<Value>
InstancePrefix "hadoop-nodeManager-available-memory"
Type "gauge"
Table false
Attribute "AvailableGB"
</Value>
<Value>
InstancePrefix "hadoop-nodeManager-containers-launched"
Type "counter"
Table false
Attribute "ContainersLaunched"
</Value>
<Value>
InstancePrefix "hadoop-nodeManager-containers-failed"
Type "counter"
Table false
Attribute "ContainersFailed"
</Value>
<Value>
InstancePrefix "hadoop-nodeManager-allocated-vcores"
Type "gauge"
Table false
Attribute "AllocatedVCores"
</Value>
<Value>
InstancePrefix "hadoop-nodeManager-available-vcores"
Type "gauge"
Table false
Attribute "AvailableVCores"
</Value>
</MBean>
<Connection>
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:8002/jmxrmi"
Host "localhost"
Collect "classes"
Collect "garbage_collector"
Collect "memory-heap"
Collect "memory-nonheap"
Collect "memory_pool"
Collect "hadoop-nodeManager-metrics"
</Connection>
</Plugin>
</Plugin>