-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from mostafahussein/apm-server-support
Introduce `apm-server` to elastdocker
- Loading branch information
Showing
8 changed files
with
190 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ARG ELK_VERSION | ||
|
||
# https://github.com/elastic/apm-server | ||
FROM docker.elastic.co/apm/apm-server:${ELK_VERSION} | ||
ARG ELK_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
######################### APM Server Configuration ######################### | ||
|
||
################################ APM Server ################################ | ||
|
||
apm-server: | ||
# Defines the host and port the server is listening on. Use "unix:/path/to.sock" to listen on a unix domain socket. | ||
host: "0.0.0.0:8200" | ||
|
||
|
||
#---------------------------- APM Server - Secure Communication with Agents ---------------------------- | ||
|
||
# Enable authentication using Secret token | ||
auth: | ||
secret_token: '${ELASTIC_APM_SECRET_TOKEN}' | ||
|
||
# Enable secure communication between APM agents and the server. By default ssl is disabled. | ||
ssl: | ||
enabled: true | ||
|
||
# Path to file containing the certificate for server authentication. | ||
# Needs to be configured when ssl is enabled. | ||
certificate: "/certs/apm-server.crt" | ||
|
||
# Path to file containing server certificate key. | ||
# Needs to be configured when ssl is enabled. | ||
key: "/certs/apm-server.key" | ||
|
||
#================================ Outputs ================================= | ||
|
||
# Configure the output to use when sending the data collected by apm-server. | ||
|
||
#-------------------------- Elasticsearch output -------------------------- | ||
output.elasticsearch: | ||
# Array of hosts to connect to. | ||
# Scheme and port can be left out and will be set to the default (`http` and `9200`). | ||
# In case you specify and additional path, the scheme is required: `http://elasticsearch:9200/path`. | ||
# IPv6 addresses should always be defined as: `https://[2001:db8::1]:9200`. | ||
hosts: '${ELASTICSEARCH_HOST_PORT}' | ||
|
||
# Boolean flag to enable or disable the output module. | ||
enabled: true | ||
|
||
# Protocol - either `http` (default) or `https`. | ||
protocol: "https" | ||
|
||
# Authentication credentials | ||
username: '${ELASTIC_USERNAME}' | ||
password: '${ELASTIC_PASSWORD}' | ||
|
||
# Enable custom SSL settings. Set to false to ignore custom SSL settings for secure communication. | ||
ssl.enabled: true | ||
|
||
# List of root certificates for HTTPS server verifications. | ||
ssl.certificate_authorities: ["/certs/ca.crt"] | ||
|
||
# Certificate for SSL client authentication. | ||
ssl.certificate: "/certs/apm-server.crt" | ||
|
||
# Client Certificate Key | ||
ssl.key: "/certs/apm-server.key" | ||
|
||
#============================= X-pack Monitoring ============================= | ||
|
||
# APM server can export internal metrics to a central Elasticsearch monitoring | ||
# cluster. This requires x-pack monitoring to be enabled in Elasticsearch. The | ||
# reporting is disabled by default. | ||
|
||
# Set to true to enable the monitoring reporter. | ||
monitoring.enabled: true | ||
|
||
# Most settings from the Elasticsearch output are accepted here as well. | ||
# Note that these settings should be configured to point to your Elasticsearch *monitoring* cluster. | ||
# Any setting that is not set is automatically inherited from the Elasticsearch | ||
# output configuration. This means that if you have the Elasticsearch output configured, | ||
# you can simply uncomment the following line. | ||
monitoring.elasticsearch: | ||
|
||
# Protocol - either `http` (default) or `https`. | ||
protocol: "https" | ||
|
||
# Authentication credentials | ||
username: '${ELASTIC_USERNAME}' | ||
password: '${ELASTIC_PASSWORD}' | ||
|
||
# Array of hosts to connect to. | ||
# Scheme and port can be left out and will be set to the default (`http` and `9200`). | ||
# In case you specify and additional path, the scheme is required: `http://elasticsearch:9200/path`. | ||
# IPv6 addresses should always be defined as: `https://[2001:db8::1]:9200`. | ||
hosts: '${ELASTICSEARCH_HOST_PORT}' | ||
|
||
# Enable custom SSL settings. Set to false to ignore custom SSL settings for secure communication. | ||
ssl.enabled: true | ||
|
||
# List of root certificates for HTTPS server verifications. | ||
ssl.certificate_authorities: ["/certs/ca.crt"] | ||
|
||
# Certificate for SSL client authentication. | ||
ssl.certificate: "/certs/apm-server.crt" | ||
|
||
# Client Certificate Key | ||
ssl.key: "/certs/apm-server.key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters