简体   繁体   English

Cloudfront登录到Prometheus

[英]Cloudfront Logs into Prometheus

I want to collect AWS cloudfront request level metrics [count of request by unique resource] into Prometheus. 我想将AWS cloudfront请求级别指标[按唯一资源的请求数]收集到Prometheus中。
I've seen how to use Logstash to forward the logs to ElasticSearch, and I thought of polling/querying ElasticSearch once a minute to get an aggregate, then exporting that result to Prometheus. 我已经看到了如何使用Logstash将日志转发到ElasticSearch,我想到了每分钟轮询/查询ElasticSearch一次以获取聚合,然后将该结果导出到Prometheus。

But it feels a little sloppy considering potential timing issues or missing/duplicate metric values. 但是考虑到潜在的时序问题或度量值缺失/重复,感觉有些草率。

I also saw a metrics filter for Logstash - so maybe I could create a meter for each unique url, then use the http output plugin to send the metrics to Prometheus. 我还看到了Logstash的指标过滤器-因此也许我可以为每个唯一的URL创建一个指标,然后使用http输出插件将指标发送给Prometheus。

One more thought - 还有一个想法-
I've never used CloudFront with CloudWatch. 我从未将CloudFront与CloudWatch一起使用。 Maybe I could use the CloudWatch exporter for Prometheus if it provide request counts at the resource level, or is it higher level aggregates? 也许我可以将CloudWatch导出器用于Prometheus,如果它在资源级别提供了请求计数,还是更高级别的聚合?

您可以使用cloudwatch_exporter从Cloudwatch中为CloudFront抓取指标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM