http - 如何使用 Prometheus 插件测量 Fluentd 延迟?
问题描述
我正在研究将日志写入 http 端点的 Fluentd 管道。我也在使用fluent-Prometheus 插件来监控我的 Fluentd 进程。Prometheus 插件没有内置延迟指标,但它允许您自定义自己的指标。
- 如何在 Fluentd 中编写自己的 Prometheus 指标来测量我的 http 输出延迟?
- 是否可以从 Fluentd 公开其他 Prometheus 指标?例如,
http_response_time_sum
或http_response_time_count
。这样我就可以使用这个问题上发布的公式来计算延迟。
解决方案
推荐阅读
- django - 在 Docker 容器中运行时芹菜不工作
- javascript - 在javascript中比较数组索引的最佳方法是什么?
- reactjs - 无法从 redux 访问状态对象
- angular - 角材料 - 自动完成垫错误
- python - 网格搜索中的 H2OResponseError 获取网格排序
- python - python多处理脚本的内存使用情况
- c++ - gcc 中的模棱两可的请求-clang 中的非模棱两可
- javascript - 使用 javascript 将 DOM 对象发送到 PHP 服务器
- javascript - React-router-dom v4 不渲染组件
- google-app-engine - PermanentTaskFailure:加载所有模块时,“模块”对象没有属性错误