🕰️ 작성일 : 2025.04.03
🚀 목표 : Amazon MSK의 Metric 파이프라인을 JMX Exporter 및 Node Exporter을 활용하여 Amazon Managed Prometheus 및 Grafana를 통해 조회하는 파이프라인을 구성합니다. 최종 아래와 같은 파이프라인 구성을 목표로 합니다.
[cloudshell-user@ip-10-134-81-117 ~]$ aws kafka describe-cluster --cluster-arn $(aws kafka list-clusters --query 'ClusterInfoList[?ClusterName==`MSK-Cluster`].ClusterArn' --output text) --query 'ClusterInfo.OpenMonitoring'
{
"Prometheus": {
"JmxExporter": {
"EnabledInBroker": true
},
"NodeExporter": {
"EnabledInBroker": true
}
}
}
[cloudshell-user@ip-10-134-81-117 ~]$ aws eks list-clusters --query 'clusters[?contains(@, `eks-monitoring`)]' --output text
eks-monitoring
[cloudshell-user@ip-10-134-81-117 ~]$ kubectl get node
NAME STATUS ROLES AGE VERSION
ip-10-10-100-40.ap-northeast-2.compute.internal Ready <none> 42m v1.31.5-eks-5d632ec
ip-10-10-110-56.ap-northeast-2.compute.internal Ready <none> 42m v1.31.5-eks-5d632ec
aws amp create-workspace --alias aws_demo --region ap-northeast-2