专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

prometheuscommunity/elasticsearch-exporter Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
elasticsearch-exporter
prometheuscommunity/elasticsearch-exporter
prometheuscommunity
prometheuscommunity/elasticsearch-exporter
5 次收藏下载次数: 0状态:社区镜像维护者:prometheuscommunity仓库类型:镜像最近更新:11 天前
轩辕镜像,加速的不只是镜像。点击查看
镜像简介版本下载
轩辕镜像,加速的不只是镜像。点击查看

Elasticsearch Exporter

![CircleCI]([] ![Go Report Card]([]

Prometheus exporter for various metrics about Elasticsearch and OpenSearch, written in Go.

Supported Versions

We support all currently supported versions of Elasticsearch and OpenSearch. This project will make reasonable attempts to maintain compatibility with previous versions but ***ations will be made for code maintainability and favoring supported versions. Where Elasticsearch and OpenSearch diverge, this project will make reasonable attempts to maintain compatibility with both. Some collectors may only be compatible with one or the other.

Installation

For pre-built binaries please take a look at the releases. <[***]>

Docker
bash
docker pull quay.io/prometheuscommunity/elasticsearch-exporter:latest
docker run --rm -p 9114:9114 quay.io/prometheuscommunity/elasticsearch-exporter:latest

Example docker-compose.yml:

yaml
elasticsearch_exporter:
    image: quay.io/prometheuscommunity/elasticsearch-exporter:latest
    command:
     - '--es.uri=[***]
    restart: always
    ports:
    - "127.0.0.1:9114:9114"
Kubernetes

You can find a helm chart in the prometheus-community charts repository at <[***]>

bash
helm repo add prometheus-community [***]
helm install [RELEASE_NAME] prometheus-community/prometheus-elasticsearch-exporter
Configuration

NOTE: The exporter fetches information from an Elasticsearch cluster on every scrape, therefore having a too short scrape interval can impose load on ES master nodes, particularly if you run with --es.all and --es.indices. We suggest you measure how long fetching /_nodes/stats and /_all/_stats takes for your ES cluster to determine whether your scraping interval is too short. As a last resort, you can scrape this exporter using a dedicated job with its own scraping interval.

Below is the command line options summary:

bash
elasticsearch_exporter --help
ArgumentIntroduced in VersionDescriptionDefault
collector.clustersettings1.6.0If true, query stats for cluster settings (As of v1.6.0, this flag has replaced "es.cluster_settings").false
es.uri1.0.2Address (host and port) of the Elasticsearch node we should connect to when running in single-target mode. Leave empty (the default) when you want to run the exporter only as a multi-target /probe endpoint. When basic auth is needed, specify as: <proto>://<user>:<password>@<host>:<port>. E.G., http://admin:pass@localhost:9200. Special characters in the user credentials need to be URL-encoded.""
es.all1.0.2If true, query stats for all nodes in the cluster, rather than just the node we connect to.false
es.indices1.0.2If true, query stats for all indices in the cluster.false
es.indices_settings1.0.4rc1If true, query settings stats for all indices in the cluster.false
es.indices_mappings1.2.0If true, query stats for mappings of all indices of the cluster.false
es.aliases1.0.4rc1If true, include informational aliases metrics.true
es.ilm1.6.0If true, query index lifecycle policies for indices in the cluster.
es.shards1.0.3rc1If true, query stats for all indices in the cluster, including shard-level stats (implies es.indices=true).false
collector.snapshots1.0.4rc1If true, query stats for the cluster snapshots. (As of v1.7.0, this flag has replaced "es.snapshots").false
collector.health-report1.10.0If true, query the health report (requires elasticsearch 8.7.0 or later)false
es.slmIf true, query stats for SLM.false
es.data_streamIf true, query state for Data Steams.false
es.timeout1.0.2Timeout for trying to get stats from Elasticsearch. (ex: 20s)5s
es.ca1.0.2Path to PEM file that contains trusted Certificate Authorities for the Elasticsearch connection.
es.client-private-key1.0.2Path to PEM file that contains the private key for client auth when connecting to Elasticsearch.
es.client-cert1.0.2Path to PEM file that contains the corresponding cert for the private key to connect to Elasticsearch.
es.clusterinfo.interval1.1.0rc1Cluster info update interval for the cluster label5m
es.ssl-skip-verify1.0.4rc1Skip SSL verification when connecting to Elasticsearch.false
web.listen-address1.0.2Address to listen on for web interface and telemetry.:9114
web.telemetry-path1.0.2Path under which to expose metrics./metrics
aws.region1.5.0Region for AWS elasticsearch
aws.role-arn1.6.0Role ARN of an IAM role to assume.
config.file1.10.0Path to a YAML configuration file that defines auth_modules: used by the /probe multi-target endpoint. Leave unset when not using multi-target mode.
version1.0.2Show version info on stdout and exit.

Commandline parameters start with a single - for versions less than 1.1.0rc1. For versions greater than 1.1.0rc1, commandline parameters are specified with --.

The API key used to connect can be set with the ES_API_KEY environment variable.

Logging

Logging by the exporter is handled by the log/slog package. The output format can be customized with the --log.format flag which defaults to logfmt. The log level can be set with the --log.level flag which defaults to info. The output can be set to either stdout (default) or stderr with the --log.output flag.

Elasticsearch 7.x security privileges

Username and password can be passed either directly in the URI or through the ES_USERNAME and ES_PASSWORD environment variables. Specifying those two environment variables will override authentication passed in the URI (if any).

ES 7.x supports RBACs. The following security privileges are required for the elasticsearch_exporter.

SettingPrivilege RequiredDescription
collector.clustersettingscluster monitor
exporter defaultscluster monitorAll cluster read-only operations, like cluster health and state, hot threads, node info, node and cluster stats, and pending cluster tasks.
es.indicesindices monitor (per index or *)All actions that are required for monitoring (recovery, segments info, index stats and status)
es.indices_settingsindices monitor (per index or *)
es.indices_mappingsindices view_index_metadata (per index or *)
es.shardsnot sure if indices or cluster monitor or both
collector.snapshotscluster:admin/snapshot/status and cluster:admin/repository/getES Forum Post
es.slmmanage_slm
es.data_streammonitor or manage (per index or *)

Further Information

  • Built in Users
  • Defining Roles
  • Privileges
Multi-Target Scraping (beta)

From v2.X the exporter exposes /probe allowing one running instance to scrape many clusters.

Supported auth_module types:

typeYAML fieldsInjected into request
userpassuserpass.username, userpass.password, optional options: mapSets HTTP basic-auth header, appends options as query parameters
apikeyapikey: Base64 API-Key string, optional options: mapAdds Authorization: ApiKey … header, appends options
awsaws.region, optional aws.role_arn, optional options: mapUses AWS SigV4 signing transport for HTTP(S) requests, appends options
tlstls.ca_file, tls.cert_file, tls.key_fileUses client certificate authentication via TLS; cannot be mixed with other auth types

Example config:

yaml
# exporter-config.yml
auth_modules:
  prod_basic:
    type: userpass
    userpass:
      username: metrics
      password: s3cr3t

  staging_key:
    type: apikey
    apikey: "bXk6YXBpa2V5Ig=="  # base64 id:key
    options:
      sslmode: disable

Run exporter:

bash
./elasticsearch_exporter --config.file=exporter-config.yml

Prometheus scrape_config:

yaml
- job_name: es
  metrics_path: /probe
  params:
    auth_module: [staging_key]
  static_configs:
    - targets: ["[***]"]
  relabel_configs:
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: instance
    - target_label: __address__
      replacement: exporter:9114

Notes:

  • /metrics serves a single, process-wide registry and is intended for single-target mode.
  • /probe creates a fresh registry per scrape for the given target allowing multi-target scraping.
  • Any options: under an auth module will be appended as URL query parameters to the target URL.
  • The tls auth module (client certificate authentication) is intended for self‑managed Elasticsearch/OpenSearch deployments. Amazon OpenSearch Service typically authenticates at the domain edge with IAM/SigV4 and does not support client certificate authentication; use the aws auth module instead when scraping Amazon OpenSearch Service domains.
Metrics

See the metrics documentation

Alerts & Recording Rules

We provide examples for Prometheus alerts and recording rules as well as an Grafana Dashboard and a Kubernetes Deployment.

The example dashboard needs the node_exporter installed. In order to select the nodes that belong to the Elasticsearch cluster, we rely on a label cluster. Depending on your setup, it can derived from the platform metadata:

For example on GCE

- source_labels: [__meta_gce_metadata_Cluster]
  separator: ;
  regex: (.*)
  target_label: cluster
  replacement: ${1}
  action: replace

Please refer to the Prometheus SD documentation to see which metadata labels can be used to create the cluster label.

Credit & License

elasticsearch_exporter is maintained by the Prometheus Community.

elasticsearch_exporter was then maintained by the nice folks from JustWatch. Then transferred this repository to the Prometheus Community in May 2021.

This package was originally created and maintained by Eric Richardson, who transferred this repository to us in January 2017.

Please refer to the Git commit log for a complete list of contributors.

Contributing

We welcome any contributions. Please fork the project on GitHub and open Pull Requests for any proposed changes.

Please note that we will not merge any changes that encourage insecure behaviour. If in doubt please open an Issue first to discuss your proposal.

查看更多 elasticsearch-exporter 相关镜像 →
bitnami/elasticsearch-exporter logo
bitnami/elasticsearch-exporter
bitnami
Bitnami安全镜像,用于运行elasticsearch-exporter,实现Elasticsearch集群指标的收集与导出,适用于监控系统集成。
7 次收藏1000万+ 次下载
7 个月前更新
bitnamilegacy/elasticsearch-exporter logo
bitnamilegacy/elasticsearch-exporter
bitnamilegacy
Bitnami遗留镜像(不再更新)
5万+ 次下载
6 个月前更新
ibmcom/elasticsearch-exporter logo
ibmcom/elasticsearch-exporter
ibmcom
暂无描述
1万+ 次下载
6 年前更新
apecloud/elasticsearch-exporter logo
apecloud/elasticsearch-exporter
apecloud
暂无描述
1万+ 次下载
1 年前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
prometheuscommunity/elasticsearch-exporter
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.