@@ -160,15 +160,26 @@ relationships:
160160 present : true
161161 - attribute : broker.endpoint
162162 regex : " .*(localhost|127\\ .0\\ .0\\ .1|::1|0\\ .0\\ .0\\ .0).*"
163+ - attribute : entity.type
164+ anyOf : [ "KAFKABROKER" ]
165+ - attribute : k8s.pod.name # condition to exclude k8s pod based hosts
166+ present : false
163167 relationship :
164168 expires : PT75M
165169 relationshipType : HOSTS
166170 source :
167- lookupGuid :
168- candidateCategory : HOST
169- fields :
170- - field : hostId
171- attribute : host.id
171+ buildGuid :
172+ account :
173+ attribute : accountId
174+ domain :
175+ value : INFRA
176+ type :
177+ value : HOST
178+ valueInGuid : NA
179+ identifier :
180+ fragments :
181+ - attribute : host.id
182+ hashAlgorithm : FARM_HASH
172183 target :
173184 extractGuid :
174185 attribute : entity.guid
@@ -191,15 +202,26 @@ relationships:
191202 present : true
192203 - attribute : broker.endpoint
193204 regex : " ^(?!.*(localhost|127\\ .0\\ .0\\ .1|::1|0\\ .0\\ .0\\ .0)).*$"
205+ - attribute : entity.type
206+ anyOf : [ "KAFKABROKER" ]
207+ - attribute : k8s.pod.name # condition to exclude k8s pod based hosts
208+ present : false
194209 relationship :
195210 expires : PT75M
196211 relationshipType : MEASURES
197212 source :
198- lookupGuid :
199- candidateCategory : HOST
200- fields :
201- - field : hostId
202- attribute : host.id
213+ buildGuid :
214+ account :
215+ attribute : accountId
216+ domain :
217+ value : INFRA
218+ type :
219+ value : HOST
220+ valueInGuid : NA
221+ identifier :
222+ fragments :
223+ - attribute : host.id
224+ hashAlgorithm : FARM_HASH
203225 target :
204226 extractGuid :
205227 attribute : entity.guid
@@ -220,106 +242,26 @@ relationships:
220242 present : true
221243 - attribute : broker.endpoint
222244 present : false
223- relationship :
224- expires : PT75M
225- relationshipType : MEASURES
226- source :
227- lookupGuid :
228- candidateCategory : HOST
229- fields :
230- - field : hostId
231- attribute : host.id
232- target :
233- extractGuid :
234- attribute : entity.guid
235- entityType :
236- value : KAFKABROKER
237-
238- # Remote scenario: Host monitors remote Kafka broker with OpenTelemetry when broker.endpoint is present
239- - name : hostMonitorsOtelKafkaBrokerRemote
240- version : " 1"
241- origins :
242- - OpenTelemetry
243- conditions :
244- - attribute : eventType
245- anyOf : [ "Metric" ]
246- - attribute : instrumentation.provider
247- anyOf : [ "opentelemetry" ]
248- - attribute : host.id
249- present : true
250- - attribute : broker.endpoint
251- present : true
252- - attribute : broker.endpoint
253- regex : " ^(?!.*(localhost|127\\ .0\\ .0\\ .1|::1|0\\ .0\\ .0\\ .0)).*$"
254- relationship :
255- expires : PT75M
256- relationshipType : MEASURES
257- source :
258- lookupGuid :
259- candidateCategory : HOST
260- fields :
261- - field : hostId
262- attribute : host.id
263- target :
264- extractGuid :
265- attribute : entity.guid
266- entityType :
267- value : KAFKABROKER
268-
269- # Host measures Kafka broker with OpenTelemetry when broker.endpoint is not present
270- - name : hostMonitorsOtelKafkaBrokerNoEndpoint
271- version : " 1"
272- origins :
273- - OpenTelemetry
274- conditions :
275- - attribute : eventType
276- anyOf : [ "Metric" ]
277- - attribute : instrumentation.provider
278- anyOf : [ "opentelemetry" ]
279- - attribute : host.id
280- present : true
281- - attribute : broker.endpoint
245+ - attribute : entity.type
246+ anyOf : [ "KAFKABROKER" ]
247+ - attribute : k8s.pod.name # condition to exclude k8s pod based hosts
282248 present : false
283249 relationship :
284250 expires : PT75M
285251 relationshipType : MEASURES
286252 source :
287- lookupGuid :
288- candidateCategory : HOST
289- fields :
290- - field : hostId
291- attribute : host.id
292- target :
293- extractGuid :
294- attribute : entity.guid
295- entityType :
296- value : KAFKABROKER
297-
298- # Local scenario: Kafka broker running on the same host with OpenTelemetry
299- - name : hostHostsOtelKafkaBrokerLocalhost
300- version : " 1"
301- origins :
302- - OpenTelemetry
303- conditions :
304- - attribute : eventType
305- anyOf : [ "Metric" ]
306- - attribute : instrumentation.provider
307- anyOf : [ "opentelemetry" ]
308- - attribute : host.id
309- present : true
310- - attribute : broker.endpoint
311- present : true
312- - attribute : broker.endpoint
313- regex : " .*(localhost|127\\ .0\\ .0\\ .1|::1|0\\ .0\\ .0\\ .0).*"
314- relationship :
315- expires : PT75M
316- relationshipType : HOSTS
317- source :
318- lookupGuid :
319- candidateCategory : HOST
320- fields :
321- - field : hostId
322- attribute : host.id
253+ buildGuid :
254+ account :
255+ attribute : accountId
256+ domain :
257+ value : INFRA
258+ type :
259+ value : HOST
260+ valueInGuid : NA
261+ identifier :
262+ fragments :
263+ - attribute : host.id
264+ hashAlgorithm : FARM_HASH
323265 target :
324266 extractGuid :
325267 attribute : entity.guid
0 commit comments