Skip to content

Commit

Permalink
add mapping for CW direct connect (#1208)
Browse files Browse the repository at this point in the history
For the connection level metrics just map in the state
as that is the only metrics currently getting produced.
  • Loading branch information
brharrington authored Sep 30, 2020
1 parent bd9292e commit 3cc0e78
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
84 changes: 84 additions & 0 deletions atlas-poller-cloudwatch/src/main/resources/dx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@

atlas {
cloudwatch {

// https://docs.aws.amazon.com/directconnect/latest/UserGuide/monitoring-cloudwatch.html
dx-connection = {
namespace = "AWS/DX"
period = 1m
end-period-offset = 4
period-count = 2

dimensions = [
"ConnectionId"
]

metrics = [
{
name = "ConnectionState"
alias = "aws.dx.connectionState"
conversion = "max"
}
]
}

dx-virtual-interface = {
namespace = "AWS/DX"
period = 1m
end-period-offset = 4
period-count = 2

dimensions = [
"ConnectionId",
"VirtualInterfaceId"
]

metrics = [
{
name = "VirtualInterfaceBpsEgress"
alias = "aws.dx.virtualInterfaceBits"
conversion = "sum"
tags = [
{
key = "id"
value = "egress"
}
]
},
{
name = "VirtualInterfaceBpsIngress"
alias = "aws.dx.virtualInterfaceBits"
conversion = "sum"
tags = [
{
key = "id"
value = "ingress"
}
]
},
{
name = "VirtualInterfacePpsEgress"
alias = "aws.dx.virtualInterfacePackets"
conversion = "sum"
tags = [
{
key = "id"
value = "egress"
}
]
},
{
name = "VirtualInterfacePpsIngress"
alias = "aws.dx.virtualInterfacePackets"
conversion = "sum"
tags = [
{
key = "id"
value = "ingress"
}
]
},
]
}
}
}
7 changes: 7 additions & 0 deletions atlas-poller-cloudwatch/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ atlas {
name = "Protocol"
alias = "aws.protocol"
},
{
name = "ConnectionId"
alias = "aws.connection"
}
]

// Tags that should get applied to all metrics from cloudwatch.
Expand Down Expand Up @@ -263,6 +267,8 @@ atlas {
"alb-tg-zone",
"api-gateway",
"billing",
"dx-connection",
"dx-virtual-interface",
"dynamodb-table-1m",
"dynamodb-table-5m",
"dynamodb-table-ops",
Expand Down Expand Up @@ -303,6 +309,7 @@ atlas {
include "alb.conf"
include "api-gateway.conf"
include "billing.conf"
include "dx.conf"
include "dynamodb.conf"
include "ec2.conf"
include "elasticache.conf"
Expand Down

0 comments on commit 3cc0e78

Please sign in to comment.