Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create MSK Serverless scrape config #609

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions atlas-cloudwatch/src/main/resources/msk-serverless.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
atlas {
cloudwatch {

// https://docs.aws.amazon.com/msk/latest/developerguide/serverless-monitoring.html
msk-serverless-cluster = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace = "AWS/Kafka"
period = 1m
end-period-offset = 5
brituck marked this conversation as resolved.
Show resolved Hide resolved

dimensions = [
"Cluster Name",
brituck marked this conversation as resolved.
Show resolved Hide resolved
"Topic"
]

metrics = [
{
name = "BytesIn"
alias = "aws.mskserverless.bytes"
conversion = "sum,rate"
tags = [
{
key = "id"
value = "in"
}
]
},
{
name = "BytesOut"
alias = "aws.mskserverless.bytes"
conversion = "sum,rate"
tags = [
{
key = "id"
value = "out"
}
]
},
{
name = "FetchMessageConversions"
alias = "aws.mskserverless.messageConversions"
conversion = "sum,rate"
tags = [
{
key = "id"
value = "fetch"
}
]
},
{
name = "ProduceMessageConversions"
alias = "aws.mskserverless.messageConversions"
conversion = "sum,rate"
tags = [
{
key = "id"
value = "produce"
}
]
},
{
name = "MessagesIn"
alias = "aws.mskserverless.messages"
conversion = "sum,rate"
tags = [
{
key = "id"
value = "in"
}
]
}
]
}

msk-serverless-consumergroup = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace = "AWS/Kafka"
period = 1m
end-period-offset = 5

dimensions = [
"Cluster Name",
"Topic",
"Consumer Group"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to keep an eye on cardinality here if there will be multiple groups for a large # of topics.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, add these three to the tag map in https://github.com/Netflix-Skunkworks/iep-apps/blob/main/atlas-cloudwatch/src/main/resources/reference.conf#L236 with dotted notation for Atlas please.

]

metrics = [
{
name = "EstimatedMaxTimeLag"
alias = "aws.mskserverless.estimatedMaxTimeLag"
conversion = "max"
},
{
name = "MaxOffsetLag"
alias = "aws.mskserverless.maxOffsetLag"
conversion = "max"
},
{
name = "SumOffsetLag"
alias = "aws.mskserverless.sumOffsetLag"
conversion = "max"
}
]
}
}
}
15 changes: 15 additions & 0 deletions atlas-cloudwatch/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ atlas {
name = "ClusterName"
alias = "aws.memorydb"
},
{
name = "Cluster Name"
alias = "aws.cluster"
},
{
name = "Consumer Group"
alias = "aws.consumerGroup"
},
{
name = "ConnectionId"
alias = "aws.connection"
Expand Down Expand Up @@ -474,6 +482,10 @@ atlas {
name = "TableName"
alias = "aws.table"
},
{
name = "Topic"
alias = "aws.topic"
},
{
name = "TopicName"
alias = "aws.topic"
Expand Down Expand Up @@ -574,6 +586,8 @@ atlas {
"medialive-output",
"medialive-network",
"memorydb",
"msk-serverless-cluster",
"msk-serverless-consumergroup",
"nat-gateway",
"neptune-cluster-role",
"neptune-cluster-5m",
Expand Down Expand Up @@ -627,6 +641,7 @@ include "lambda.conf"
include "mediaconnect.conf"
include "medialive.conf"
include "memorydb.conf"
include "msk-serverless.conf"
include "nat-gateway.conf"
include "neptune.conf"
include "nlb.conf"
Expand Down
Loading