es_exporter服务配置
es_exporter service configuration
在设置 ElasticSearch Exporter 服务时,我想到了以下内容
[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 集群]
在文档中,是这样写的:
远程 Elasticsearch 服务器的地址。当需要基本身份验证时,指定为:://:@:。例如,http://admin:pass@localhost:9200.
此处的文档:https://github.com/prometheus-community/elasticsearch_exporter#configuration
在设置 ElasticSearch Exporter 服务时,我想到了以下内容
[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 集群]
在文档中,是这样写的:
远程 Elasticsearch 服务器的地址。当需要基本身份验证时,指定为:://:@:。例如,http://admin:pass@localhost:9200.
此处的文档:https://github.com/prometheus-community/elasticsearch_exporter#configuration