Created
April 8, 2021 06:57
-
-
Save ebuildy/119beca1063f3915201bd62e5b821276 to your computer and use it in GitHub Desktop.
elastic APM debug
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
http: | |
enabled: true | |
port: 5066 | |
monitoring: | |
enabled: false | |
logging: | |
level: warning | |
to_files: false | |
to_stderr: true | |
setup: | |
template: | |
name: "apm-%{[observer.version]}" | |
pattern: "apm-%{[observer.version]}-*" | |
overwrite: true | |
settings: | |
index.number_of_shards: 2 | |
index.codec: best_compression | |
apm-server: | |
host: "0.0.0.0:8200" | |
# https://www.elastic.co/guide/en/apm/server/current/configuration-instrumentation.html | |
instrumentation: | |
enabled: true | |
environment: production | |
hosts: | |
- "http://localhost:8200" | |
# https://www.elastic.co/guide/en/apm/server/7.11/transaction-metrics.html | |
aggregation: | |
transactions: | |
enabled: true | |
interval: 1m | |
max_groups: 5000 | |
sampling: | |
keep_unsampled: false | |
kibana: | |
enabled: true | |
host: "http://hot-kibana:5601" | |
username: "elastic" | |
password: "elastic" | |
# https://www.elastic.co/guide/en/apm/server/7.11/configuration-rum.html | |
# https://www.elastic.co/guide/en/apm/server/7.11/sourcemaps.html | |
rum: | |
enabled: true | |
source_mapping.enabled: false # need setup from Phoenix team | |
allow_origins: ['*'] | |
exclude_from_grouping: "^/webpack" | |
event_rate: | |
limit: 100000 # as we use HAP ips | |
lru_size: 1000 | |
queue: | |
mem.events: 4096 | |
flush.timeout: 5s | |
flush.min_events: 50 | |
max_procs: 4 | |
output: | |
file: | |
enabled: false | |
elasticsearch: | |
enabled: true | |
hosts: ["http://hot-es-data:9200"] | |
bulk_max_size: 750 | |
worker: 4 | |
max_retries: 0 | |
username: "elastic" | |
password: "elastic" | |
pipelines: | |
- pipeline: "apm_user_agent" | |
#- pipeline: "apm_geoip_qwant" | |
- pipeline: "apm_ingest_timestamp" | |
- pipeline: "apm_remove_span_metadata" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment