Skip to content

Commit 03282bc

Browse files
authored
Merge pull request #1580 from kylehodgetts/network-manager
Add support for Network Manager / Cloud WAN metrics
2 parents d975e17 + f41fdd4 commit 03282bc

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Only the latest version gets security updates. We won't support older versions.
110110
* `AWS/Neptune` - Neptune
111111
* `AWS/NetworkELB` - Network Load Balancer
112112
* `AWS/NetworkFirewall` - Network Firewall
113+
* `AWS/Network Manager` - Network Manager
113114
* `AWS/PrivateLinkEndpoints` - VPC Endpoint
114115
* `AWS/PrivateLinkServices` - VPC Endpoint Service
115116
* `AWS/Prometheus` - Managed Service for Prometheus

examples/networkmanager.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-metrics.html
2+
apiVersion: v1alpha1
3+
discovery:
4+
jobs:
5+
- type: AWS/Network Manager
6+
regions:
7+
- us-west-2
8+
period: 60
9+
length: 300
10+
metrics:
11+
- name: BytesDropCountBlackhole
12+
statistics: [Sum]
13+
- name: BytesDropCountNoRoute
14+
statistics: [Sum]
15+
- name: BytesIn
16+
statistics: [Sum]
17+
- name: BytesOut
18+
statistics: [Sum]
19+
- name: PacketsDropCountBlackhole
20+
statistics: [Sum]
21+
- name: PacketsDropCountNoRoute
22+
statistics: [Sum]
23+
- name: PacketDropCountTTLExpired
24+
statistics: [Sum]
25+
- name: PacketsIn
26+
statistics: [Sum]
27+
- name: PacketsOut
28+
statistics: [Sum]

pkg/config/services.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,4 +1016,14 @@ var SupportedServices = serviceConfigs{
10161016
regexp.MustCompile(":service/(?P<Service>[^/]+)$"),
10171017
},
10181018
},
1019+
{
1020+
Namespace: "AWS/Network Manager",
1021+
Alias: "networkmanager",
1022+
ResourceFilters: []*string{
1023+
aws.String("networkmanager:core-network"),
1024+
},
1025+
DimensionRegexps: []*regexp.Regexp{
1026+
regexp.MustCompile(":core-network/(?P<CoreNetwork>[^/]+)$"),
1027+
},
1028+
},
10191029
}

0 commit comments

Comments
 (0)