Skip to content

Instantly share code, notes, and snippets.

@Callonski
Last active September 7, 2020 01:06
Show Gist options
  • Save Callonski/7e562996de3740e132d7c3d6a8598143 to your computer and use it in GitHub Desktop.
Save Callonski/7e562996de3740e132d7c3d6a8598143 to your computer and use it in GitHub Desktop.
##################### APM ##########################
curl -L -O https://artifacts.elastic.co/downloads/apm-server/apm-server-7.8.0-amd64.deb
sudo dpkg -i apm-server-7.7.0-amd64.deb
sudo apm-server keystore create
echo "${elastic_pw}" | sudo bin/apm-server keystore add ES_PASSWORD
cat <<EOT >> /etc/apm-server/apm-server.yml
output.elasticsearch:
hosts: ['https://${elastic_host_1}:9200','https://${elastic_host_2}:9200','https://${elastic_host_3}:9200']
username: 'elastic'
password: '${ES_PASSWORD}'
ssl:
certificate_authorities: ['/etc/kibana/elasticsearch-ca.pem']
verification_mode: 'none'
apm-server:
host: 0.0.0.0:8081
EOT
sudo systemctl daemon-reload
sudo systemctl enable apm-server
sudo systemctl start apm-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment