This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathheartbeat.example.yml
74 lines (58 loc) · 2.27 KB
/
heartbeat.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
######################### Heartbeat #######################
# Define a directory to load monitor definitions from.
# Definitions take the form of individual yaml files.
heartbeat.config.monitors:
path: ${path.config}/monitors.d/*.yml
reload.enabled: false
reload.period: 5s
# Configure monitors inline
heartbeat.monitors:
- type: http
# List of urls to query, use hostnames or IPADDRs
urls: ["http://hostname:80"]
# Configure task schedule
schedule: '@every 10s'
# Total test connection and data exchange timeout
#timeout: 16s
#============== Index Lifecycle Management (ILM) =========
#
# setup.ilm.check_exists should be set to false in
# order to limit the privs required by the publish
# role and to ensure that the ILM policy is not
# overwritten once customized by the admin
setup.ilm.check_exists: false
#============== Elasticsearch template setting ===========
# Please see these resources to size your cluster and
# determine the settings that should go here.
# https://www.elastic.co/webinars/elasticsearch-scaling-best-practices
# https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing
# https://www.elastic.co/consulting/design-services
# https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right
# https://www.elastic.co/videos/pro-tips-from-elastic-support-engineers
# https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster
setup.template.settings:
index.number_of_shards: 1
index.number_of_replicas: 1
#====================== Elastic Cloud =====================
cloud.id: "${CLOUD_ID}"
cloud.auth: "${ES_WRITER_USER}:${ES_WRITER_PASSWORD}"
#====================== Processors ========================
processors:
- add_host_metadata:
netinfo.enabled: true
- add_observer_metadata:
netinfo.enabled: true
geo:
name: nyc-dc1-rack1
location: 40.7128, -74.0060
continent_name: North America
country_iso_code: US
region_name: New York
region_iso_code: NY
city_name: New York
#==================== Spool to Disk =======================
queue.spool: ~
#======================== Logging =========================
logging.level: error
#====================== Monitoring ========================
monitoring.enabled: true