百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

prometheus-nginxlog-exporter

> DevOps
开源

将 Nginx 访问日志文件中的指标导出到 Prometheus

1.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 Nginx 访问日志文件中的指标导出到 Prometheus

= NGINX 到 Prometheus 日志文件导出器 :tip-caption: :bulb: :note-caption: :information_source: :important-caption: :heavy_exclamation_mark: :caution-caption: :fire: :warning-caption: :warning: :toc: :toc-placement!: :toc-title: 图像:https://img.shields.io/github/workflow/status/martin-helmich/prometheus-nginxlog-exporter/Compile%20&%20Test[GitHub 工作流状态 图像:Quay 上的 https://quay.io/repository/martinhelmich/prometheus-nginxlog-exporter/status[link="https://quay.io/repository/martinhelmich/prometheus-nginxlog-exporter",Docker 仓库 图片:https://goreportcard.com/badge/github.com/martin-helmich/prometheus-nginxlog-exporter[link="https://goreportcard.com/report/github.com/martin-helmich/prometheus-nginxlog-exporter", 转到成绩单] 图片:https://img.shields.io/github/license/martin-helmich/prometheus-nginxlog-exporter[GitHub] 图片:https://img.shields.io/badge/donate-PayPal-yellow[link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SEARYHPVS9U5N&source=url", 请捐款] 这是一个辅助工具,它持续读取 NGINX 日志文件(或任何类似的日志文件),并将指标导出到 https://prometheus.io/[Prometheus]。 == 目录 toc::[] == 使用方法 您可以使用简单的配置,使用命令行标志,或者创建 一个配置文件,包含更先进的配置。 使用命令行:


$ ./prometheus-nginxlog-exporter
-format=""
-listen-port=4040
-namespace=nginx \

使用配置文件:

$ ./prometheus-nginxlog-exporter -config-file /path/to/config.hcl

您可以在部署前验证配置文件,这将以指示成功的 shell 状态退出:

$ ./prometheus-nginxlog-exporter -config-file /path/to/config.hcl -verify-config

安装

有多种方法可以安装此导出器。 === Docker 此出口器的 Docker 图像可在 quay.io 和 pkg.GitHub.com 上获取 注册表:

  • quay.io/martinhelmich/prometheus-nginxlog-exporter:v1
  • ghcr.io/martin-helmich/prometheus-nginxlog-exporter/exporter:v1

请查看 https://github.com/martin-helmich

[discrete] [source] [PATHS-TO-LOGFILES...] [source] [source]

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gohacktoberfestmetrics-exporternginxprometheus-exporter

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理