[ECS] [request]: Allow multiple service discovery registry entries for a single service
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
**Tell us about your request**
I'd like to have a single ecs service that exposes 2 ports and have both registered in service discovery registries.
**Which service(s) is this request for?**
ECS
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
We're using the fluentbit/firelens setup for our logs, fluentbit exposes prometheus metrics by default and with the dns_sd config in prometheus we can really easily get our application metrics into prometheus (very nice), but we can't use that same mechanism to get metrics from fluentbit.
This is our immediate goal but I would have thought this would be a common concern for anyone making use of the service discover feature.
**Are you currently working around this issue?**
No, we're not collecting any metrics from sidecars.
**Additional context**
I understand that we can run consul to solve this problem but having the whole solution provisioned with a few lines of terraform is very attractive.
Contributor guide
Research direction
Start by reviewing the ECS service request and its service-discovery context, including the two-port and sidecar metrics use case described here. Done means a single ECS service can expose two ports and register both in service discovery registries, while remaining provisionable with Terraform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, prometheus, terraform
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100