-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheartbeat.yaml
48 lines (48 loc) · 1.17 KB
/
heartbeat.yaml
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
apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: heartbeat
spec:
type: heartbeat
version: 8.15.1
elasticsearchRef:
name: elasticsearch
config:
http:
enabled: true
host: 0.0.0.0
heartbeat.monitors:
- type: http
schedule: '@every 5s'
hosts: ["https://elasticsearch-es-http.default.svc:9200"]
id: http-monitor-1-id
name: http-monitor-1-name
- type: http
schedule: '@every 5s'
hosts: ["https://kibana-kb-http.default.svc:5601"]
id: http-monitor-2-id
name: http-monitor-2-name
- type: http
schedule: '@every 300'
hosts: ["https://elastic.co"]
id: http-monitor-3-id
name: http-monitor-3-name
heartbeat.run_from:
id: my-custom-geo
geo:
name: nyc-dc1-rack2
location: 40.7128, -74.0060
continent_name: North America
country_iso_code: US
region_name: New York (Region)
region_iso_code: NY
city_name: New York (City)
deployment:
podTemplate:
metadata:
labels:
scrape: hb
spec:
dnsPolicy: ClusterFirstWithHostNet
securityContext:
runAsUser: 0