Get Sync instance metrics from DLE API
Rework using new API capabilities, instead of using direct PG connection to sync component's Postgres.
For DLE 3.2.0 and newer.
.synchronization
curl -s -H "Verification-Token: secret_token" http://localhost:2345/status | jq -r '.synchronization'
{
"status": {
"code": "OK",
"message": ""
},
"startedAt": "2022-09-09T20:42:24.698122283Z",
"lastReplayedLsn": "2/D1000000",
"lastReplayedLsnAt": "2021-03-17T22:02:45.696923Z",
"replicationLag": "467378550",
"replicationUptime": 276
}
Edited by Vitaliy Kukharik