在设置ElasticSearch出口商服务时,我提供了以下内容
[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我不知道该放什么价值.
http://elastic_user:XXXXXXXXXXX@localhost:9200会不会像..。?
http://elastic_user(by which I am starting peocess):(PASSWORD)@(IP/LOCALHOST):9200
附加信息:这些更改用于使用Prometheus和Grafana监视ElasticSearch集群
发布于 2021-06-04 09:57:34
在文件中,这是这样写的:
远程Elasticsearch服务器的地址。当需要基本的auth时,指定为:://:@:。例如,http://admin:pass@localhost:9200。
这里的文档:https://github.com/prometheus-community/elasticsearch_exporter#configuration
https://stackoverflow.com/questions/67834905
复制相似问题