#prometheus - June 2019

tamsky
tamskyover 7 years ago
Has anyone here used https://github.com/weaveworks/prom-aggregation-gateway for aggregating metrics from Lambda functions?
Curious if anyone has field notes to share.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@Igor Rodionov deployed something like that. not specifically for lambdas though.
Igor Rodionov
Igor Rodionovover 7 years ago
@Igor Rodionov has joined the channel
rohit
rohitover 7 years ago
@Erik Osterman (Cloud Posse) Hi. Are you planning to talk about prometheus anytime soon during office-hours?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
#office-hours topics are really driven by who ever attends
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
is there something specific you're interested in?
rohit
rohitover 7 years ago
nothing specific, we are thinking about using prometheus
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
I'd be happy to give a demo
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Our next office hours is tomorrow
rohit
rohitover 7 years ago
time please
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago(edited)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Every Wednesday at 11:30 am PST
rohit
rohitover 7 years ago
bad timing for me(i am in CST), will try to join
rohit
rohitover 7 years ago
thanks
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
How do deal with Prometheus and Cloudwatch's different model of metrics gathering? Prometheus assumes reported metrics are summed whereas Cloudwatch assumes each reflects current values.
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
That leads to funny looking graphs like this in Cloudwatch when a container is restarted.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@Andriy Knysh (Cloud Posse) can probably help. But it probably comes down to using something like counters vs gauges. Prometheus supports multiple types of metrics whereas I am not sure if CloudWatch does (if so they don’t call it gauge). From working with other monitoring systems it is common to support both. I’d be surprised if there isn’t a way to achieve it.
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
Thanks. I think gauge type metrics (e.g. current memory usage) work OK but not all metrics can be tracked that way. For instance "total number of requests" needs a counter because it tracks events rather than a value. The problem arises because the Prometheus client in my container reports "123 requests have occurred since the container was restarted" but when this gets forwarded to Cloudwatch it is interpreted as "123 requests occurred right now" and in the next update 30 seconds later it thinks there have been another 123 requests whereas there have been none.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago(edited)
@Tamlyn Rhodes I’m not sure how to change the metric types between prometheus and CloudWatch. https://github.com/cloudposse/prometheus-to-cloudwatch is just a proxy that scrapes prometheus URLs, converts the format, and sends the metrics to CloudWatch. It does not assume anything. It might be possible to change the module to do some logic.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
also take a look at these releases, it might help
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
OK, thanks for you help. I'll investigate other approaches.
Tamlyn Rhodes
Tamlyn Rhodesover 7 years ago
Have a good weekend 🙂
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
if you have any improvements, PRs are welcome 🙂