Asked
Active
Viewed 1,230 times
2 Answers
0
Open yml file and edit it to map to required config ,uncomment of few lines will be needed.

Neha Chaturvedi
- 41
- 2
0
Just do it as follows (in heartbeat-7.8.0) :
heartbeat.monitors.0.hosts: ["<es-ip>:9200"]
heartbeat.monitors.0.type: http
heartbeat.monitors.1.type: tcp
heartbeat.monitors.2.type: tcp
heartbeat.monitors.0.schedule: '@every 30s'
heartbeat.monitors.1.schedule: '@every 30s'
heartbeat.monitors.2.schedule: '@every 30s'
heartbeat.monitors.1.hosts: ["<redis-ip>:6379"]
heartbeat.monitors.2.hosts: ["<postgres-ip>:5432"]
let's say your applications to monitor are 3, start with 0 indexing.
beneath that, I have my usual heartbeat.monitors section as follows :
heartbeat.monitors:
- type: http
id: es-monitor
name: ES Monitor
urls: ["<es-ip>:9200"]
schedule: '@every 30s'
- . . .

khanna
- 718
- 10
- 24