首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

prometheus-nginxlog-exporter构建Nginx日志监控

lunimous 可以开启 dashborad rgw 通过 prometheus-nginxlog-exporter 可以解析 Nginx 日志,还有一些正则可以去处理,然后通过 relabel 的配置...civetweb 没有在日志记录请求返回的时间,所以考虑用 Nginx 来替换,为了能给 Ceph RGW 加一个请求相关的监控,所以需要去解析日志,在 prometheus-nginxlog-exporter...中,通过配置文件,可以把标签和端口等设置好,然后让 prometheus 加上这个 endpoint 就可以拉出来数据了。...lingqu/kp/out/390280/n1590907415729/107916/20200601220441/part-00008 HTTP/1.1" 200 1179420268 "6.077" prometheus-nginxlog-exporter...",bucket="general__lingqu",method="PUT",status="200"} 5 Reference https://github.com/martin-helmich/prometheus-nginxlog-exporter

2.8K51

prometheus描点原理

大家好,我是蓝胖子,关于prometheus的入门教程有很多,拿我之前学prometheus的经历来讲,看了很多教程,还是会对prometheus的描点以及背后的统计原理感到迷惑,所以今天我们就来分析下这部分...histogram_quantile 表达式如何描点的?上面的描点例子比较简单,我们来看一个复杂点的,这个也是Histogram 指标类型统计的原理。...如下,我们通常会用到histogram_quantile去计算服务接口时间的耗时情况。...也就是说,每个小的时间段也都会执行一次histogram_quantile 函数得到描点值,但histogram_quantile的样本值从哪里得来呢?...这就涉及到了histogram_quantile计算分为数的逻辑,有空我会在下篇文章继续分析。

26930

Prometheus实战篇:什么是Exporter

概述所有可以向Prometheus提供监控样本数据的程序都可以被称为一个Exporter.而Exporter的一个实例称为target,如图下所示,Prometheus通过轮询的方式定期从这些target...中获取样本数据:这里Prometheus是通过pull(拉取的方式)从Target中获取样本数据安装好Exporter后会暴露一个/metrics的HTTP服务,通过Prometheus添加配置Prometheus...pause duration of garbage collection cycles.# TYPE go_gc_duration_seconds summarygo_gc_duration_seconds{quantile...="0"} 4.029e-05go_gc_duration_seconds{quantile="0.25"} 5.2092e-05go_gc_duration_seconds{quantile="0.5..."} 6.3091e-05go_gc_duration_seconds{quantile="0.75"} 8.9905e-05go_gc_duration_seconds{quantile="1"} 0.000300032go_gc_duration_seconds_sum

29210

Prometheus核心概念:你是如何在项目中使用Summary类型的Metric的?

95分位,95%:260ms(有95%的请求,耗时低于260ms)[260ms,需要优化性能] 99分位,99%:270ms(有99%的请求,耗时低于270ms)[270ms,影响客户体验] 3 使用Prometheus...示例代码: // 统计http请求耗时 var httpRequestDuration = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Name...="/hello/2",quantile="0.95"} 97 http_request_duration{endpoint="/hello/2",quantile="0.99"} 98 http_request_duration_sum...推荐阅读: Prometheus核心概念:一图了解瞬时向量Instant vector和区间向量Range vector的区别 Prometheus源码分析:基于Go Client自定义的Exporter...Prometheus核心概念:一图了解Counter和Gauge两种数据指标类型的区别

2.8K31
领券