首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >es_exporter服务配置

es_exporter服务配置
EN

Stack Overflow用户
提问于 2021-06-04 09:33:00
回答 1查看 256关注 0票数 0

在设置ElasticSearch出口商服务时,我提供了以下内容

代码语言:javascript
复制
[Unit]
Description=Prometheus ES_exporter
After=local-fs.target network-online.target network.target
Wants=local-fs.target network-online.target network.target

[Service]
User=root
Nice=10
ExecStart = /usr/local/bin/es_exporter --es.uri=http://elastic_user:XXXXXXXXXXX@localhost:9200 --es.all --es.indices --es.timeout 20s
ExecStop= /usr/bin/killall es_exporter

[Install]
WantedBy=default.target

我不知道该放什么价值.

代码语言:javascript
复制
 http://elastic_user:XXXXXXXXXXX@localhost:9200

会不会像..。?

http://elastic_user(by which I am starting peocess):(PASSWORD)@(IP/LOCALHOST):9200

附加信息:这些更改用于使用Prometheus和Grafana监视ElasticSearch集群

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-04 09:57:34

在文件中,这是这样写的:

远程Elasticsearch服务器的地址。当需要基本的auth时,指定为:://:@:。例如,http://admin:pass@localhost:9200

这里的文档:https://github.com/prometheus-community/elasticsearch_exporter#configuration

这里的一个例子:https://github.com/Lyr/ansible-elasticsearch-exporter/blob/master/templates/elasticsearch_exporter.service.j2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67834905

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档