-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic_mapping.xml
222 lines (222 loc) · 6.16 KB
/
basic_mapping.xml
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--Edited using Gateway Setup Editor version RA5.1.0-200306 at 2020-03-30 18:56:37 by lbalakrishnan on ITRSLP156-->
<!-- Gateway-created setup include file for user ActiveConsole1 at 127.0.0.1 -->
<gateway compatibility="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.itrsgroup.com/RA5.1.0-200324/gateway.xsd">
<dynamicEntities>
<mappings>
<mapping name="DefaultAppMapping">
<!--An example Dynamic Entities mapping to automatically create Geneos data structures for data received from Collection Agent statsd plugin.
This mapping will also create an entity for Collection Agent self-monitoring metrics which are also published via its statsd plugin.
Use this as an example to create your own mappings for monitoring your instrumented applications.-->
<matchCriteria>
<matchCriterion>
<source>
<dimension>app_name</dimension>
</source>
<pattern>.+</pattern>
</matchCriterion>
</matchCriteria>
<entityMapping>
<directoryMapping>
<dimension>hostname</dimension>
</directoryMapping>
<directoryMapping>
<dimension>app_name</dimension>
</directoryMapping>
</entityMapping>
<samplerMapping>
<directoryMapping>
<dimension>built-sampler</dimension>
</directoryMapping>
</samplerMapping>
<dataviewMapping>
<directoryMapping>
<dimension>built-dv</dimension>
</directoryMapping>
</dataviewMapping>
<rowMapping>
<directoryMapping>
<dimension>jvm_memory_pool_name</dimension>
</directoryMapping>
<directoryMapping>
<dimension>jvm_memory_gc_name</dimension>
</directoryMapping>
<directoryMapping>
<dimension>thread_state</dimension>
</directoryMapping>
<directoryMapping>
<static>
<data>data</data>
</static>
</directoryMapping>
</rowMapping>
<attributeMappings>
<attributeMapping>
<name>Application</name>
<directoryMappings>
<directoryMapping>
<label>app_name</label>
</directoryMapping>
</directoryMappings>
</attributeMapping>
<attributeMapping>
<name>Environment</name>
<directoryMappings>
<directoryMapping>
<static>
<var ref="probeHost"/>
</static>
</directoryMapping>
</directoryMappings>
</attributeMapping>
</attributeMappings>
<labelBuilders>
<choice>
<name>built-dv</name>
<source>
<metricName/>
</source>
<choices>
<choice>
<prefix>collection_agent</prefix>
<value>collection_agent</value>
</choice>
<choice>
<prefix>collection_agent_events</prefix>
<value>events</value>
</choice>
<choice>
<prefix>collection_agent_logs</prefix>
<value>logs</value>
</choice>
<choice>
<prefix>collection_agent_metrics</prefix>
<value>metrics</value>
</choice>
<choice>
<prefix>jvm_memory_gc</prefix>
<value>memory_gc</value>
</choice>
<choice>
<prefix>jvm_memory_pool_heap</prefix>
<value>memory_pool_heap</value>
</choice>
<choice>
<prefix>jvm_memory_pool_non_heap</prefix>
<value>memory_pool_non_heap</value>
</choice>
<choice>
<prefix>jvm_memory_heap</prefix>
<value>memory_heap</value>
</choice>
<choice>
<prefix>jvm_memory_non_heap</prefix>
<value>memory_non_heap</value>
</choice>
<choice>
<prefix>jvm_os</prefix>
<value>os</value>
</choice>
<choice>
<prefix>jvm_runtime</prefix>
<value>runtime</value>
</choice>
<choice>
<prefix>jvm_thread_states</prefix>
<value>thread_states</value>
</choice>
<choice>
<prefix>jvm_thread</prefix>
<value>thread</value>
</choice>
</choices>
<dimension>true</dimension>
<fallback>Custom</fallback>
</choice>
<choice>
<name>built-sampler</name>
<source>
<metricName/>
</source>
<choices>
<choice>
<prefix>collection</prefix>
<value>Geneos</value>
</choice>
<choice>
<prefix>jvm</prefix>
<value>JVM</value>
</choice>
</choices>
<dimension>true</dimension>
<fallback>App</fallback>
</choice>
</labelBuilders>
</mapping>
</mappings>
<mappingTypes>
<mappingType name="DefaultAppMappingType">
<!--An example Dynamic Entities mapping type.
A Dynamic Entities mapping type should be set in the Probe configuration.-->
<mappings>
<mapping ref="DefaultAppMapping"/>
</mappings>
</mappingType>
</mappingTypes>
</dynamicEntities>
<types>
<type name="Health">
<sampler ref="Health"/>
</type>
</types>
<samplers>
<samplerGroup name="Dynamic Entities">
<sampler name="Health">
<sampleInterval>
<data>1</data>
</sampleInterval>
<plugin>
<dynamic-entities-health/>
</plugin>
</sampler>
</samplerGroup>
</samplers>
<rules>
<rule name="Sampling Status">
<targets>
<target>/geneos/gateway/directory/probe/managedEntity/sampler/dataview/headlines/cell[(@name="samplingStatus")]</target>
</targets>
<priority>1</priority>
<block>
<if>
<like>
<dataItem>
<property>@value</property>
</dataItem>
<string>OK</string>
</like>
<transaction>
<update>
<property>state/@severity</property>
<severity>ok</severity>
</update>
</transaction>
<transaction>
<update>
<property>state/@severity</property>
<severity>warning</severity>
</update>
</transaction>
</if>
</block>
</rule>
</rules>
<operatingEnvironment>
<gatewayName/>
<var name="probeHost">
<macro>
<netprobeHost/>
</macro>
</var>
</operatingEnvironment>
</gateway>