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

Ability to send metrics to VPC endpoint #52

Open
jlosito opened this issue Jun 13, 2023 · 0 comments
Open

Ability to send metrics to VPC endpoint #52

jlosito opened this issue Jun 13, 2023 · 0 comments

Comments

@jlosito
Copy link

jlosito commented Jun 13, 2023

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

I would like to send metrics to a VPC endpoint instead of sending metrics to the public API.

Expected Behavior

I expect the ability to ship metrics to CloudWatch over a private network where the instance does not have the ability to reach the public endpoint over the Internet.

Use Case

I have EC2 instances that do not have access to the public internet. The EC2 instances are in a private subnet and they do not have a NAT gateway in order to reach the Internet. This EC2 instance has a service that is exposing prometheus styled metrics that I would like to ship to CloudWatch, but would need to be done over the private network through a VPC endpoint.

Describe Ideal Solution

I would like the ability to add the VPC endpoint as a parameter so that the cloudwatch client is able to put metrics into CloudWatch over the private network. I believe this would be achieved by setting the Endpoint option linked below.

https://docs.aws.amazon.com/sdk-for-go/api/aws/client/#ConfigProvider

It appears that the CloudWatch client is being set here, and this is where the Endpoint option might have to be set.
https://github.com/cloudposse/prometheus-to-cloudwatch/blob/master/prometheus_to_cloudwatch.go#L136-L196

Alternatives Considered

Explain what alternative solutions or features you've considered.

Additional Context

Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant