Hi @emilioalvap
Here is the event I see in the logs from heartbeat that shows the status down.
{
"@timestamp": "2022-10-05T14:45:15.214Z",
"@metadata": {
"beat": "heartbeat",
"type": "_doc",
"version": "8.3.3"
},
"summary": {
"up": 0,
"down": 1
},
"tags": [
"<tag0>",
"<tag1>"
],
"kubernetes": {
"namespace": "<namespace>",
"replicaset": {
"name": "<service-name>-svc-5c7b8859c9"
},
"labels": {
"version": "v1",
"app": "<service-name>",
"pod-template-hash": "5c7b8859c9"
},
"node": {
"labels": {
"beta_kubernetes_io/os": "linux",
"kubernetes_io/arch": "amd64",
"kubernetes_io/hostname": "<hostname>",
"kubernetes_io/os": "linux",
"node_kubernetes_io/instance-type": "k1.4x32",
"beta_kubernetes_io/arch": "amd64",
"beta_kubernetes_io/instance-type": "k1.4x32"
},
"hostname": "<hostname>",
"name": "<hostname>",
"uid": "<uuid>"
},
"namespace_uid": "<uuid>",
"namespace_labels": {
"field_cattle_io/projectId": "<project-id>",
"kubernetes_io/metadata_name": "<namespace>"
},
"pod": {
"ip": "<ip>",
"name": "<service-name>-svc-5c7b8859c9-hsbqh",
"uid": "48376104-987c-4ac2-952e-8dec9eef3bec"
},
"container": {
"name": "<service-name>"
}
},
"event": {
"dataset": "http"
},
"cloud": {
"availability_zone": "nova",
"service": {
"name": "ECS"
},
"provider": "huawei",
"instance": {
"id": "<uuid>"
},
"region": ""
},
"agent": {
"ephemeral_id": "296eac54-671f-4269-8a83-be6476d8d67f",
"id": "2e18b8f5-8d89-4ed0-bf71-844216f972f7",
"name": "elastic-heartbeat-5ffd89f9bf-r6wht",
"type": "heartbeat",
"version": "8.3.3"
},
"observer": {
"ip": [
"<ipV4>",
"<ipV6>"
],
"mac": [
"<mac>"
],
"geo": {
"region_name": "<region>",
"region_iso_code": "<isocode>",
"city_name": "<city>",
"name": "<node-name>",
"location": "<coordinates>",
"continent_name": "<continent>",
"country_iso_code": "<isocode>"
},
"hostname": "elastic-heartbeat-5ffd89f9bf-r6wht"
},
"monitor": {
"timespan": {
"gte": "2022-10-05T14:45:15.214Z",
"lt": "2022-10-05T14:45:45.214Z"
},
"id": "auto-http-0X1322FD3945CDC8F5",
"name": "<service-name>",
"type": "http",
"status": "down",
"duration": {
"us": 12
},
"check_group": "52ce46cd-44bc-11ed-ba01-fa5d5bf6d255"
},
"ecs": {
"version": "8.0.0"
},
"error": {
"type": "io",
"message": "job could not be initialized: hosts is a mandatory parameter accessing config"
},
"container": {
"id": "a0788016fda3174288fc9b8a9f459890a4a4e79386ddc853a7414480eab6b417",
"runtime": "containerd",
"image": {
"name": "<repository>/<image>:latest"
}
}
}
And here is the event that shows up.
{
"@timestamp": "2022-10-05T14:45:15.213Z",
"@metadata": {
"beat": "heartbeat",
"type": "_doc",
"version": "8.3.3"
},
"summary": {
"up": 1,
"down": 0
},
"tcp": {
"rtt": {
"connect": {
"us": 345
}
}
},
"http": {
"response": {
"status_code": 200,
"body": {
"hash": "<bodyhash>",
"bytes": 15
},
"mime_type": "application/json",
"headers": {
"Content-Type": "application/json",
"Content-Length": "15",
"Date": "Wed, 5 Oct 2022 14:45:15 GMT"
}
},
"rtt": {
"content": {
"us": 126
},
"total": {
"us": 2439
},
"write_request": {
"us": 53
},
"response_header": {
"us": 1909
},
"validate": {
"us": 2035
}
}
},
"tags": [
"<tag0>",
"<tag1>"
],
"kubernetes": {
"namespace": "<namespace>",
"replicaset": {
"name": "<service-name>-svc-5c7b8859c9"
},
"labels": {
"version": "v1",
"app": "<service-name>",
"pod-template-hash": "5c7b8859c9"
},
"node": {
"labels": {
"beta_kubernetes_io/os": "linux",
"kubernetes_io/arch": "amd64",
"kubernetes_io/hostname": "<hostname>",
"kubernetes_io/os": "linux",
"node_kubernetes_io/instance-type": "k1.4x32",
"beta_kubernetes_io/arch": "amd64",
"beta_kubernetes_io/instance-type": "k1.4x32"
},
"hostname": "<hostname>",
"name": "<hostname>",
"uid": "<uuid>"
},
"namespace_uid": "<uuid>",
"namespace_labels": {
"field_cattle_io/projectId": "<project-id>",
"kubernetes_io/metadata_name": "<namespace>"
},
"pod": {
"ip": "<ip>",
"name": "<service-name>-svc-5c7b8859c9-hsbqh",
"uid": "48376104-987c-4ac2-952e-8dec9eef3bec"
}
},
"event": {
"dataset": "http"
},
"resolve": {
"ip": "<ip>",
"rtt": {
"us": 4650
}
},
"url": {
"scheme": "http",
"domain": "<service-name>.<namespace>.svc.cluster.local",
"port": 80,
"path": "/health",
"full": "http://<service-name>.<namespace>.svc.cluster.local/health"
},
"cloud": {
"availability_zone": "nova",
"service": {
"name": "ECS"
},
"provider": "huawei",
"instance": {
"id": "<uuid>"
},
"region": ""
},
"agent": {
"ephemeral_id": "296eac54-671f-4269-8a83-be6476d8d67f",
"id": "2e18b8f5-8d89-4ed0-bf71-844216f972f7",
"name": "elastic-heartbeat-5ffd89f9bf-r6wht",
"type": "heartbeat",
"version": "8.3.3"
},
"observer": {
"ip": [
"<ipV4>",
"<ipV6>"
],
"mac": [
"<mac>"
],
"geo": {
"region_name": "<region>",
"region_iso_code": "<isocode>",
"city_name": "<city>",
"name": "<node-name>",
"location": "<coordinates>",
"continent_name": "<continent>",
"country_iso_code": "<isocode>"
},
"hostname": "elastic-heartbeat-5ffd89f9bf-r6wht"
},
"monitor": {
"timespan": {
"gte": "2022-10-05T14:45:15.220Z",
"lt": "2022-10-05T14:45:45.220Z"
},
"id": "auto-http-0X7603BE60DBA32742",
"name": "<service-name>",
"type": "http",
"status": "up",
"duration": {
"us": 7157
},
"check_group": "52ce07ed-44bc-11ed-ba01-fa5d5bf6d255",
"ip": "<ip>"
},
"ecs": {
"version": "8.0.0"
}
}
Please let me know if I can provide more.