Hi,

On 11/23/20 10:41 PM, kiran wrote:> I am trying to push log events for lambda functions in Prometheus.
> I am trying to see if we can even save this kind of data and if so any
> recommended structure in Prometheus. E.g whenever a lambda function is
> invoked, AWS puts log events data and each run will have multiple events
> and associated data for each event. Any suggestions on how to design the
> data? Is a event considered a metric in this case.
> Here is a generic structure of the data from AWS where you see
> ‘LogEvents’ is an array of events.
>
> https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchlogs.html <https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchlogs.html> This FAQ entry might be relevant: https://prometheus.io/docs/introduction/faq/#how-to-feed-logs-into-prometheus

In short, if you want to extract metrics from logs, there are tools to do that. If you want to store plain logs, use something which aims to support that such as ELK or Loki. :)

Kind regards,
Christian

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9717544f-56fa-8b5c-1f79-752fe539ee50%40hoffmann-christian.info.

Reply via email to