aws-samples / aws-microservices-deploy-options

This repo contains a simple application that consists of three microservices. Each application is deployed using different Compute options on AWS.
MIT No Attribution
429 stars 179 forks source link

Monitoring Fargate containers using Prometheus and Grafana #78

Open arun-gupta opened 6 years ago

arun-gupta commented 6 years ago

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

jclarksnps commented 5 years ago

Is there a way to do this with prometheus?

kaji-bikash commented 5 years ago

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?

Ayukha commented 5 years ago

Hi, @arun-gupta @kajisaap I have to monitor Fargate containers, is it possible via Prometheus? Can you suggest me a way to do it?

hshafy commented 5 years ago

+1

cool-raj commented 5 years ago

+1

snemetz commented 4 years ago

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

rcollette commented 3 years ago

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?