I have an error while trying to apply the heartbeat for the post request. My heartbeat config is:
heartbeat.monitors:
- type: http
ipv4: true
mode: any
timeout: 30s
name: test
schedule: '@every 1m'
urls:
- "test-app.test.svc.cluster.local:8080/send_message"
check.request:
method: POST
headers:
'Content-Type': 'application/json'
body: '{"channel_id":"heartbeat","app_version":"1.10.0","fid":"string","allmember_id":"string","message":{"id":"string","data":"chicken or eggs"},"from_fixed_menu":false,"from_map":false}'
check.response:
status: 200
error i am getting is
"error": {
"type": "io",
"message": "Post \"http://test-app.test.svc.cluster.local:8080/send_message\": http: request timed out while waiting for response (Client.Timeout exceeded while awaiting headers)"
}
I am using heartbeat 7.10.0 in GKE, FYI the GET method for the health check works