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

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

官方QQ群: 1072982923

prometheuscommunity/elasticsearch-exporter Docker 镜像 - 轩辕镜像

elasticsearch-exporter
prometheuscommunity/elasticsearch-exporter
prometheuscommunity/elasticsearch-exporter
5 收藏0 次下载
🚀 稳定镜像源 = 更少宕机 + 更低运维成本
镜像简介版本下载
🚀 稳定镜像源 = 更少宕机 + 更低运维成本

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安全镜像,用于运行elasticsearch-exporter,实现Elasticsearch集群指标的收集与导出,适用于监控系统集成。
710M+ pulls
上次更新:未知
bitnamilegacy/elasticsearch-exporter logo
bitnamilegacy/elasticsearch-exporter
Bitnami遗留镜像(不再更新)
10K+ pulls
上次更新:未知
ibmcom/elasticsearch-exporter logo
ibmcom/elasticsearch-exporter
暂无描述
10K+ pulls
上次更新:未知
apecloud/elasticsearch-exporter logo
apecloud/elasticsearch-exporter
暂无描述
10K+ pulls
上次更新:未知
prom/elasticsearch-exporter logo
prom/elasticsearch-exporter
暂无描述
11.5K pulls
上次更新:未知

轩辕镜像配置手册

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

登录仓库拉取

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

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

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

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

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