Amazon-vpc-cni-k8s: Metrics to cloudwatch without VPC endpoint

Created on 17 Aug 2020  Â·  4Comments  Â·  Source: aws/amazon-vpc-cni-k8s

Can the metrics be sent to CW via proxy ?
Our clusters are private only and I cannot send the metrics to the dashboard.
Is VPC endpoint the only option?
Thanks.

question

All 4 comments

Hi @SimplySeth,

The current cni-metrics-helper is very simple and just pushes metrics directly to Cloud Watch using the default CloudWatch Client from the AWS SDK. The closest related roadmap item is probably https://github.com/aws/containers-roadmap/issues/387.

Supporting a proxy would require some code changes in the current metrics helper.

@SimplySeth, the easiest way that I can think of here would be to create a ConfigMap and patch the CNI metric helper deployment pod with that configMap. This way, all the traffic leaving the pod(CNI metric helper pod) would use these proxy variable to reach CloudWatch endpoints.

For similar setup, please refer to - https://aws.amazon.com/premiumsupport/knowledge-center/eks-http-proxy-configuration-automation/

@SimplySeth Did Nithish's reply answer your question?

Yes. Thank you very much.

On Thu, Sep 10, 2020, 01:16 Claes Mogren notifications@github.com wrote:

@SimplySeth https://github.com/SimplySeth Did Nithish's reply answer
your question?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aws/amazon-vpc-cni-k8s/issues/1150#issuecomment-689988547,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACMCLUUB42ENBOMUD5ZKHODSFBOKZANCNFSM4QCATSEA
.

Was this page helpful?
0 / 5 - 0 ratings