Can you please format your code? It is Hard to read.. I can not tell what it is ... use the </>
button
If you are using a config you found elsewhere is is hard to help.
The beat module does not do system metrics...
Please just install metricbeat on a remote host ... NOT the host that Elasticsearch is running on...
make no changes, do not use the github config, and ONLY set the output.elasticsearch
in the metribeat.yml and then run metricbeat.
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["elasticsearch_host:9200"] <!-- The Host Elasticsearch is running on
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
username: "elastic"
password: "changeme"
You can also simply set this in the metricbeat.yml and metricbeat monitoring will be enabled and same to the same Elasticsearch.
# Set to true to enable the monitoring reporter.
monitoring.enabled: true