Skip to content

Commit 9911358

Browse files
authored
Revert the otel relationships with hosts (#2594)
1 parent 82894b9 commit 9911358

2 files changed

Lines changed: 91 additions & 90 deletions

File tree

relationships/synthesis/INFRA-HOST-to-INFRA-KAFKABROKER.stg.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,97 @@ relationships:
223223
relationship:
224224
expires: PT75M
225225
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
282+
present: false
283+
relationship:
284+
expires: PT75M
285+
relationshipType: MEASURES
286+
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
226317
source:
227318
lookupGuid:
228319
candidateCategory: HOST

relationships/synthesis/INFRA-HOST-to-INFRA-KAFKABROKER.yml

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -141,95 +141,5 @@ relationships:
141141
target:
142142
extractGuid:
143143
attribute: entityGuid
144-
entityType:
145-
value: KAFKABROKER
146-
# Local scenario: Kafka broker running on the same host with OpenTelemetry
147-
- name: hostHostsOtelKafkaBrokerLocalhost
148-
version: "1"
149-
origins:
150-
- OpenTelemetry
151-
conditions:
152-
- attribute: eventType
153-
anyOf: [ "Metric" ]
154-
- attribute: instrumentation.provider
155-
anyOf: [ "opentelemetry" ]
156-
- attribute: host.id
157-
present: true
158-
- attribute: broker.endpoint
159-
present: true
160-
- attribute: broker.endpoint
161-
regex: ".*(localhost|127\\.0\\.0\\.1|::1|0\\.0\\.0\\.0).*"
162-
relationship:
163-
expires: PT75M
164-
relationshipType: HOSTS
165-
source:
166-
lookupGuid:
167-
candidateCategory: HOST
168-
fields:
169-
- field: hostId
170-
attribute: host.id
171-
target:
172-
extractGuid:
173-
attribute: entity.guid
174-
entityType:
175-
value: KAFKABROKER
176-
177-
# Remote scenario: Host monitors remote Kafka broker with OpenTelemetry when broker.endpoint is present
178-
- name: hostMonitorsOtelKafkaBrokerRemote
179-
version: "1"
180-
origins:
181-
- OpenTelemetry
182-
conditions:
183-
- attribute: eventType
184-
anyOf: [ "Metric" ]
185-
- attribute: instrumentation.provider
186-
anyOf: [ "opentelemetry" ]
187-
- attribute: host.id
188-
present: true
189-
- attribute: broker.endpoint
190-
present: true
191-
- attribute: broker.endpoint
192-
regex: "^(?!.*(localhost|127\\.0\\.0\\.1|::1|0\\.0\\.0\\.0)).*$"
193-
relationship:
194-
expires: PT75M
195-
relationshipType: MEASURES
196-
source:
197-
lookupGuid:
198-
candidateCategory: HOST
199-
fields:
200-
- field: hostId
201-
attribute: host.id
202-
target:
203-
extractGuid:
204-
attribute: entity.guid
205-
entityType:
206-
value: KAFKABROKER
207-
208-
# Host measures Kafka broker with OpenTelemetry when broker.endpoint is not present
209-
- name: hostMonitorsOtelKafkaBrokerNoEndpoint
210-
version: "1"
211-
origins:
212-
- OpenTelemetry
213-
conditions:
214-
- attribute: eventType
215-
anyOf: [ "Metric" ]
216-
- attribute: instrumentation.provider
217-
anyOf: [ "opentelemetry" ]
218-
- attribute: host.id
219-
present: true
220-
- attribute: broker.endpoint
221-
present: false
222-
relationship:
223-
expires: PT75M
224-
relationshipType: MEASURES
225-
source:
226-
lookupGuid:
227-
candidateCategory: HOST
228-
fields:
229-
- field: hostId
230-
attribute: host.id
231-
target:
232-
extractGuid:
233-
attribute: entity.guid
234144
entityType:
235145
value: KAFKABROKER

0 commit comments

Comments
 (0)