Skip to content

Commit bebbea9

Browse files
[Synthetics] add run_from.geo.name field (elastic#4741)
* restore run_from options and add run_from.geo.name * adjust changelog * remove extra observer metadata processor
1 parent da5229a commit bebbea9

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

packages/synthetics/changelog.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.11.4"
3+
changes:
4+
- description: Add run_from.geo.name field to monitor config to preserve location name
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/4741
27
- version: "0.11.3"
38
changes:
49
- description: Add run_from field to monitor config
@@ -8,7 +13,7 @@
813
changes:
914
- description: Change incorrectly typed `states.ends.duration` field from `date` to long
1015
type: bugfix
11-
link: https://github.com/elastic/integrations/pull/4477
16+
link: https://github.com/elastic/integrations/pull/4541
1217
- version: "0.11.1"
1318
changes:
1419
- description: Change incorrectly typed `states.duration` field from `date` to long

packages/synthetics/data_stream/browser/agent/stream/browser.yml.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ origin: {{origin}}
1010
{{#if location_name}}
1111
run_from.id: {{location_name}}
1212
{{/if}}
13+
{{#if location_name}}
14+
run_from.geo.name: {{location_name}}
15+
{{/if}}
1316
enabled: {{enabled}}
1417
{{#if service.name}}
1518
service.name: {{service.name}}
@@ -81,9 +84,6 @@ source.zip_url.ssl.supported_protocols: {{source.zip_url.ssl.supported_protocols
8184
source.zip_url.proxy_url: {{source.zip_url.proxy_url}}
8285
{{/if}}
8386
processors:
84-
- add_observer_metadata:
85-
geo:
86-
name: {{location_name}}
8787
- add_fields:
8888
target: ''
8989
fields:

packages/synthetics/data_stream/http/agent/stream/http.yml.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ origin: {{origin}}
1010
{{#if location_name}}
1111
run_from.id: {{location_name}}
1212
{{/if}}
13+
{{#if location_name}}
14+
run_from.geo.name: {{location_name}}
15+
{{/if}}
1316
enabled: {{enabled}}
1417
urls: {{urls}}
1518
{{#if service.name}}
@@ -70,9 +73,6 @@ ssl.verification_mode: {{ssl.verification_mode}}
7073
ssl.supported_protocols: {{ssl.supported_protocols}}
7174
{{/if}}
7275
processors:
73-
- add_observer_metadata:
74-
geo:
75-
name: {{location_name}}
7676
- add_fields:
7777
target: ''
7878
fields:

packages/synthetics/data_stream/icmp/agent/stream/icmp.yml.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ origin: {{origin}}
1010
{{#if location_name}}
1111
run_from.id: {{location_name}}
1212
{{/if}}
13+
{{#if location_name}}
14+
run_from.geo.name: {{location_name}}
15+
{{/if}}
1316
enabled: {{enabled}}
1417
hosts: {{hosts}}
1518
{{#if service.name}}
@@ -22,9 +25,6 @@ timeout: {{timeout}}
2225
tags: {{tags}}
2326
{{/if}}
2427
processors:
25-
- add_observer_metadata:
26-
geo:
27-
name: {{location_name}}
2828
- add_fields:
2929
target: ''
3030
fields:

packages/synthetics/data_stream/tcp/agent/stream/tcp.yml.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ origin: {{origin}}
1010
{{#if location_name}}
1111
run_from.id: {{location_name}}
1212
{{/if}}
13+
{{#if location_name}}
14+
run_from.geo.name: {{location_name}}
15+
{{/if}}
1316
enabled: {{enabled}}
1417
hosts: {{hosts}}
1518
{{#if service.name}}
@@ -49,9 +52,6 @@ ssl.verification_mode: {{ssl.verification_mode}}
4952
ssl.supported_protocols: {{ssl.supported_protocols}}
5053
{{/if}}
5154
processors:
52-
- add_observer_metadata:
53-
geo:
54-
name: {{location_name}}
5555
- add_fields:
5656
target: ''
5757
fields:

packages/synthetics/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ format_version: 1.0.0
22
name: synthetics
33
title: Elastic Synthetics
44
description: Monitor the availability of your services with Elastic Synthetics.
5-
version: 0.11.3
5+
version: 0.11.4
66
categories: ["elastic_stack", "monitoring", "web"]
77
release: beta
88
type: integration

0 commit comments

Comments
 (0)