如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
logstash-exporter是一款用于将Logstash指标导出到Prometheus的工具,旨在实现对Logstash运行状态、性能及事件处理情况的全面监控。通过采集Logstash的JVM、内存、GC、管道、插件等多维度指标,为Prometheus提供标准化的监控数据。
仅支持Logstash >= v7.3,早期版本请参考https://github.com/sequra/logstash_exporter%E3%80%82
本项目基于多个分支开发,主要原因包括:
适用于需要对Logstash进行监控的场景,特别是:
使用预构建的Docker镜像直接运行:
shdocker run leroymerlinbr/logstash_exporter:latest
通过命令行参数配置exporter,支持的参数如下:
shlogstash_exporter <flags> -h, --help 显示上下文相关帮助(也可尝试 --help-long 和 --help-man)。 --logstash.endpoint="http://localhost:9600" Logstash指标API的协议、主机和端口。 --listen.address=":9198" 暴露指标和Web界面的地址。 --log.level="info" 定义日志级别。 --version 显示应用版本。
以下是exporter采集的主要指标列表:
| 名称 | 类型 | 描述 |
|---|---|---|
logstash_exporter_build_info | gauge | 导出器构建信息 |
logstash_exporter_scrape_duration_seconds | summary | 采集任务的持续时间。 |
logstash_info_jvm | counter | 常量值为1的指标,按运行Logstash的JVM名称、版本和供应商标记。 |
logstash_info_node | counter | 常量值为1的指标,按Logstash版本标记。 |
logstash_info_os | counter | 常量值为1的指标,按运行Logstash的操作系统名称、架构、版本和可用处理器数量标记。 |
logstash_node_gc_collection_duration_seconds_total | counter | |
logstash_node_gc_collection_total | gauge | |
logstash_node_jvm_threads_count | gauge | |
logstash_node_jvm_threads_peak_count | gauge | |
logstash_node_mem_heap_committed_bytes | gauge | |
logstash_node_mem_heap_max_bytes | gauge | |
logstash_node_mem_heap_used_bytes | gauge | |
logstash_node_mem_nonheap_committed_bytes | gauge | |
logstash_node_mem_nonheap_used_bytes | gauge | |
logstash_node_mem_pool_committed_bytes | gauge | |
logstash_node_mem_pool_max_bytes | gauge | |
logstash_node_mem_pool_peak_max_bytes | gauge | |
logstash_node_mem_pool_peak_used_bytes | gauge | |
logstash_node_mem_pool_used_bytes | gauge | |
logstash_node_pipeline_duration_seconds_total | counter | |
logstash_node_pipeline_events_filtered_total | counter | |
logstash_node_pipeline_events_in_total | counter | |
logstash_node_pipeline_events_out_total | counter | |
logstash_node_pipeline_queue_push_duration_seconds_total | counter | |
logstash_node_plugin_bulk_requests_failures_total | counter | |
logstash_node_plugin_bulk_requests_successes_total | counter | |
logstash_node_plugin_bulk_requests_with_errors_total | counter | |
logstash_node_plugin_documents_failures_total | counter | |
logstash_node_plugin_documents_successes_total | counter | |
logstash_node_plugin_duration_seconds_total | counter | |
logstash_node_plugin_queue_push_duration_seconds_total | counter | |
logstash_node_plugin_events_in_total | counter | |
logstash_node_plugin_events_out_total | counter | |
logstash_node_plugin_current_connections_count | gauge | |
logstash_node_plugin_peak_connections_count | gauge | |
logstash_node_process_cpu_total_seconds_total | counter | |
logstash_node_process_max_filedescriptors | gauge | |
logstash_node_process_mem_total_virtual_bytes | gauge | |
logstash_node_process_open_filedescriptors | gauge | |
logstash_node_queue_events | counter | |
logstash_node_queue_size_bytes | counter | |
logstash_node_queue_max_size_bytes | counter | |
logstash_node_dead_letter_queue_size_bytes | counter | |
logstash_node_up | gauge | Logstash节点是否正常运行(1为正常,0为异常) |
我们欢迎任何形式的贡献。建议使用符合Conventional Commits规范的Git提交信息。
请查看https://github.com/leroy-merlin-br/logstash-exporter/issues%E9%A1%B5%E9%9D%A2%E4%BA%86%E8%A7%A3%E9%9C%80%E8%A6%81%E5%BC%80%E5%8F%91%E7%9A%84%E5%8A%9F%E8%83%BD%E5%92%8C%E4%BF%AE%E5%A4%8D%E7%9A%84bug%E3%80%82
为了手动执行集成测试(确保特定Logstash版本与logstash-exporter兼容),可参考此处的说明。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




来自真实用户的反馈,见证轩辕镜像的优质服务