Skip to content

Commit 186e725

Browse files
authored
[cisco_meraki_metrics] Rename channel_utilization bands (#13332)
* add rename in pipeline * bump package version * fix pr id * bump package version
1 parent 69c7508 commit 186e725

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

packages/cisco_meraki_metrics/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.4.0"
3+
changes:
4+
- description: Rename channel utilization bands 2.5 and 5 to wifi0 and wifi1 for backwards compatibility.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/13332
27
- version: "0.3.1"
38
changes:
49
- description: Wrap organization ids in quotes to avoid parsing errors.

packages/cisco_meraki_metrics/data_stream/device_health/_dev/test/pipeline/test-pipeline-device-health.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,19 @@
5050
"meraki": {
5151
"device": {
5252
"network_id": "L_113272913626746984",
53-
"serial": "Q2BN-48JH-ZZRL"
53+
"serial": "Q2BN-48JH-ZZRL",
54+
"channel_utilization": {
55+
"5": {
56+
"utilization_80211": 3.81,
57+
"utilization_non_80211": 0.03,
58+
"utilization_total": 3.84
59+
},
60+
"2_4": {
61+
"utilization_80211": 8.46,
62+
"utilization_non_80211": 0.65,
63+
"utilization_total": 9.11
64+
}
65+
}
5466
},
5567
"organization_id": "136261",
5668
"uplink": {

packages/cisco_meraki_metrics/data_stream/device_health/_dev/test/pipeline/test-pipeline-device-health.json-expected.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
},
5050
"meraki": {
5151
"device": {
52+
"channel_utilization": {
53+
"wifi0": {
54+
"utilization_80211": 8.46,
55+
"utilization_non_80211": 0.65,
56+
"utilization_total": 9.11
57+
},
58+
"wifi1": {
59+
"utilization_80211": 3.81,
60+
"utilization_non_80211": 0.03,
61+
"utilization_total": 3.84
62+
}
63+
},
5264
"network_id": "L_113272913626746984",
5365
"serial": "Q2BN-48JH-ZZRL"
5466
},
@@ -75,4 +87,4 @@
7587
}
7688
}
7789
]
78-
}
90+
}

packages/cisco_meraki_metrics/data_stream/device_health/elasticsearch/ingest_pipeline/default.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ processors:
1515
field: meraki.uplink.rsrq
1616
type: float
1717
ignore_missing: true
18+
- rename:
19+
field: meraki.device.channel_utilization.2_4
20+
target_field: meraki.device.channel_utilization.wifi0
21+
ignore_missing: true
22+
- rename:
23+
field: meraki.device.channel_utilization.5
24+
target_field: meraki.device.channel_utilization.wifi1
25+
ignore_missing: true
1826
on_failure:
1927
- set:
2028
field: event.kind

packages/cisco_meraki_metrics/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.2.0
22
name: cisco_meraki_metrics
33
title: Cisco Meraki Metrics
4-
version: 0.3.1
4+
version: 0.4.0
55
description: Collect metrics from Cisco Meraki with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)