Open arun-gupta opened 6 years ago
Is there a way to do this with prometheus?
Fargate is a true low-touch Container-as-a-service in my mind. I am also interested to learn about Fargate monitoring via Prometheus. Is this even achievable?
Hi, @arun-gupta @kajisaap I have to monitor Fargate containers, is it possible via Prometheus? Can you suggest me a way to do it?
+1
+1
You can monitor Fargate container metrics via the metadata endpoint. This requires a monitoring sidecar in the same task to scrape the metrics and send to prometheus. Telegraf can do this. Still looking if anyone has written code for prometheus to do this directly
I have ASP.NET applications that provide a /metrics endpoint, but how would prometheus scrape instance data when it is sitting behind a load balancer and when instances scale in/out. The instances are not directly accessible. Is this a scenario where push must be used?
Add content that shows how to monitor Fargate containers using Prometheus and Grafana
Docker + Java + Prometheus experiment is at https://github.com/arun-gupta/docker-javaee#prometheus-style-metrics